Class SynchConnector
- java.lang.Object
-
- org.bedework.synch.shared.cnctrs.AbstractConnector<SynchConnector,SynchConnectorInstance,Notification<?>,ConnectorConfig,BaseSubscriptionInfo>
-
- org.bedework.synch.cnctrs.manager.SynchConnector
-
- All Implemented Interfaces:
Connector<SynchConnectorInstance,Notification<?>,ConnectorConfig>,org.bedework.util.logging.Logged
public class SynchConnector extends AbstractConnector<SynchConnector,SynchConnectorInstance,Notification<?>,ConnectorConfig,BaseSubscriptionInfo>
A special connector to handle calls to the synch engine via the web context.This is the way to call the system to add subscriptions, to unsubscribe etc.
- Author:
- Mike Douglass
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.bedework.synch.shared.cnctrs.Connector
Connector.NotificationBatch<N extends Notification>
-
-
Field Summary
-
Fields inherited from class org.bedework.synch.shared.cnctrs.AbstractConnector
callbackUri, config, failed, jc, of, propInfo, running, soapMsgFactory, stopped, syncher
-
-
Constructor Summary
Constructors Constructor Description SynchConnector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SynchDefs.SynchKindgetKind()booleangetTrustLastmod()Connector.NotificationBatchhandleCallback(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, List<String> resourceUri)booleanisManager()booleanisReadOnly()SynchConnectorInstancemakeInstance(Subscription sub, org.bedework.synch.wsmessages.SynchEndType end)voidrespondCallback(javax.servlet.http.HttpServletResponse resp, Connector.NotificationBatch<Notification<?>> notifications)voidstart(String connectorId, ConnectorConfig conf, String callbackUri, SynchEngine syncher)-
Methods inherited from class org.bedework.synch.shared.cnctrs.AbstractConnector
getCallbackUri, getConnectorId, getConnectorInstance, getIcalObjectFactory, getId, getLogger, getPort, getPropertyInfo, getSkipList, getSoapMsgFactory, getStatus, getSyncher, isFailed, isStarted, isStopped, marshal, stop, unmarshalBody
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods 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
-
-
-
-
Method Detail
-
start
public void start(String connectorId, ConnectorConfig conf, String callbackUri, SynchEngine syncher)
- Specified by:
startin interfaceConnector<SynchConnectorInstance,Notification<?>,ConnectorConfig>- Overrides:
startin classAbstractConnector<SynchConnector,SynchConnectorInstance,Notification<?>,ConnectorConfig,BaseSubscriptionInfo>
-
isManager
public boolean isManager()
- Specified by:
isManagerin interfaceConnector<SynchConnectorInstance,Notification<?>,ConnectorConfig>- Overrides:
isManagerin classAbstractConnector<SynchConnector,SynchConnectorInstance,Notification<?>,ConnectorConfig,BaseSubscriptionInfo>
-
getKind
public SynchDefs.SynchKind getKind()
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnlyin interfaceConnector<SynchConnectorInstance,Notification<?>,ConnectorConfig>- Overrides:
isReadOnlyin classAbstractConnector<SynchConnector,SynchConnectorInstance,Notification<?>,ConnectorConfig,BaseSubscriptionInfo>
-
getTrustLastmod
public boolean getTrustLastmod()
- Specified by:
getTrustLastmodin interfaceConnector<SynchConnectorInstance,Notification<?>,ConnectorConfig>- Overrides:
getTrustLastmodin classAbstractConnector<SynchConnector,SynchConnectorInstance,Notification<?>,ConnectorConfig,BaseSubscriptionInfo>
-
makeInstance
public SynchConnectorInstance makeInstance(Subscription sub, org.bedework.synch.wsmessages.SynchEndType end) throws SynchException
- Specified by:
makeInstancein classAbstractConnector<SynchConnector,SynchConnectorInstance,Notification<?>,ConnectorConfig,BaseSubscriptionInfo>- Throws:
SynchException
-
handleCallback
public Connector.NotificationBatch handleCallback(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, List<String> resourceUri) throws SynchException
- Specified by:
handleCallbackin interfaceConnector<SynchConnectorInstance,Notification<?>,ConnectorConfig>- Overrides:
handleCallbackin classAbstractConnector<SynchConnector,SynchConnectorInstance,Notification<?>,ConnectorConfig,BaseSubscriptionInfo>- Throws:
SynchException
-
respondCallback
public void respondCallback(javax.servlet.http.HttpServletResponse resp, Connector.NotificationBatch<Notification<?>> notifications) throws SynchException- Specified by:
respondCallbackin interfaceConnector<SynchConnectorInstance,Notification<?>,ConnectorConfig>- Overrides:
respondCallbackin classAbstractConnector<SynchConnector,SynchConnectorInstance,Notification<?>,ConnectorConfig,BaseSubscriptionInfo>- Throws:
SynchException
-
-