Package org.bedework.synch
Class CallbackRegistry
- java.lang.Object
-
- org.bedework.synch.CallbackRegistry
-
public class CallbackRegistry extends Object
Registry of active callbacks. When we receive a call back into the web interface, we strip off the context element and the remainder is a key into this registry.The saved or retrieved CallbackRegistryEntry has a connector id, a subscription and a flag indicating which end of the subscription called back. For example the full path might be:
/synchcb/exchg/1234567890/
and we remove "/synchcb/" to get "exchg/1234567890/".
- Author:
- Mike Douglass
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCallbackRegistry.CallbackRegistryEntryAn entry in the registry
-
Constructor Summary
Constructors Constructor Description CallbackRegistry()null constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CallbackRegistry.CallbackRegistryEntryget(String connectorId)voidput(String connectorId, CallbackRegistry.CallbackRegistryEntry val)Add an entry to the registry.StringtoString()
-
-
-
Method Detail
-
get
public CallbackRegistry.CallbackRegistryEntry get(String connectorId)
- Parameters:
connectorId-- Returns:
- entry or null for none.
-
put
public void put(String connectorId, CallbackRegistry.CallbackRegistryEntry val) throws SynchException
Add an entry to the registry. If it's already there we throw an exception. Each callback must be unique and unchanging.- Parameters:
connectorId-val-- Throws:
SynchException
-
-