Class BedeworkConnector
java.lang.Object
org.bedework.notifier.db.JsonUtil
org.bedework.notifier.cnctrs.AbstractConnector<BedeworkConnector,BedeworkConnectorInstance,Note,BedeworkConnectorConfig>
org.bedework.notifier.cnctrs.bedework.BedeworkConnector
- All Implemented Interfaces:
Connector<BedeworkConnectorInstance,Note,BedeworkConnectorConfig>,org.bedework.util.logging.Logged
public class BedeworkConnector extends AbstractConnector<BedeworkConnector,BedeworkConnectorInstance,Note,BedeworkConnectorConfig>
The notification inbound processor connector for connections to bedework.
This connector sets up inbound connection instances to provide a stream of notification messages into the notification system
The notification directory path points to a special collection which contains links to the calendar homes of accounts for which we want outbound notifications
- Author:
- Mike Douglass
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bedework.notifier.cnctrs.Connector
Connector.NotificationBatch<N extends Note> -
Field Summary
Fields inherited from class org.bedework.notifier.cnctrs.AbstractConnector
callbackUri, config, notifier, running, stopped -
Constructor Summary
Constructors Constructor Description BedeworkConnector() -
Method Summary
Modifier and Type Method Description BedeworkConnectorInstancegetConnectorInstance(org.bedework.notifier.db.NotifyDb db, org.bedework.notifier.db.Subscription sub)NotifyRegistry.InfogetInfo()NotifyDefs.NotifyKindgetKind()booleangetTrustLastmod()org.bedework.notifier.cnctrs.bedework.BedeworkConnector.BedeworkNotificationBatchhandleCallback(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, java.util.List<java.lang.String> resourceUri)booleanisManager()booleanisReadOnly()voidrespondCallback(javax.servlet.http.HttpServletResponse resp, Connector.NotificationBatch<Note> notifications)voidstart(org.bedework.notifier.db.NotifyDb db, java.lang.String callbackUri, NotifyEngine notifier)voidstop()org.bedework.notifier.db.Subscriptionsubscribe(org.bedework.notifier.db.NotifyDb db, java.util.Map<?,?> vals)org.bedework.notifier.db.Subscriptionunsubscribe(org.bedework.notifier.db.NotifyDb db, java.util.Map<?,?> vals)Methods inherited from class org.bedework.notifier.cnctrs.AbstractConnector
getCallbackUri, getConnectorConfig, getConnectorName, getId, getLogger, getNotifier, getSkipList, getStatus, init, isFailed, isStarted, isStoppedMethods inherited from class org.bedework.notifier.db.JsonUtil
may, mayList, must, mustListMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, warn
-
Constructor Details
-
BedeworkConnector
public BedeworkConnector()
-
-
Method Details
-
start
public void start(org.bedework.notifier.db.NotifyDb db, java.lang.String callbackUri, NotifyEngine notifier) throws org.bedework.notifier.exception.NoteException- Specified by:
startin interfaceConnector<BedeworkConnectorInstance,Note,BedeworkConnectorConfig>- Overrides:
startin classAbstractConnector<BedeworkConnector,BedeworkConnectorInstance,Note,BedeworkConnectorConfig>- Throws:
org.bedework.notifier.exception.NoteException
-
getInfo
-
subscribe
public org.bedework.notifier.db.Subscription subscribe(org.bedework.notifier.db.NotifyDb db, java.util.Map<?,?> vals) throws org.bedework.notifier.exception.NoteException- Throws:
org.bedework.notifier.exception.NoteException
-
unsubscribe
public org.bedework.notifier.db.Subscription unsubscribe(org.bedework.notifier.db.NotifyDb db, java.util.Map<?,?> vals) throws org.bedework.notifier.exception.NoteException- Throws:
org.bedework.notifier.exception.NoteException
-
isManager
public boolean isManager() -
getKind
-
isReadOnly
public boolean isReadOnly() -
getTrustLastmod
public boolean getTrustLastmod() -
getConnectorInstance
public BedeworkConnectorInstance getConnectorInstance(org.bedework.notifier.db.NotifyDb db, org.bedework.notifier.db.Subscription sub) throws org.bedework.notifier.exception.NoteException- Throws:
org.bedework.notifier.exception.NoteException
-
handleCallback
public org.bedework.notifier.cnctrs.bedework.BedeworkConnector.BedeworkNotificationBatch handleCallback(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, java.util.List<java.lang.String> resourceUri) throws org.bedework.notifier.exception.NoteException- Throws:
org.bedework.notifier.exception.NoteException
-
respondCallback
public void respondCallback(javax.servlet.http.HttpServletResponse resp, Connector.NotificationBatch<Note> notifications) throws org.bedework.notifier.exception.NoteException- Throws:
org.bedework.notifier.exception.NoteException
-
stop
public void stop() throws org.bedework.notifier.exception.NoteException- Specified by:
stopin interfaceConnector<BedeworkConnectorInstance,Note,BedeworkConnectorConfig>- Overrides:
stopin classAbstractConnector<BedeworkConnector,BedeworkConnectorInstance,Note,BedeworkConnectorConfig>- Throws:
org.bedework.notifier.exception.NoteException
-