Package com.boomi.connector.api
Interface ConnectorContext
-
- All Superinterfaces:
AtomContext
- All Known Subinterfaces:
BrowseContext
,OperationContext
- All Known Implementing Classes:
ConnectorTestContext
,SimpleBrowseContext
,SimpleOperationContext
public interface ConnectorContext extends AtomContext
Contextual information about aConnector
and any relevant connection properties.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PropertyMap
getConnectionProperties()
Returns the relevant connection properties if this connector has therequireConnectionForBrowse
flag enabled in the connector's descriptor.Connector
getConnector()
Returns the connector instance with which this context is associated.ConcurrentMap<Object,Object>
getConnectorCache()
Returns the current connector cache.-
Methods inherited from interface com.boomi.connector.api.AtomContext
createTempOutputStream, getConfig, tempOutputStreamToInputStream, tempOutputStreamToPayload
-
-
-
-
Method Detail
-
getConnector
Connector getConnector()
Returns the connector instance with which this context is associated.
-
getConnectorCache
ConcurrentMap<Object,Object> getConnectorCache()
Returns the current connector cache. This is the preferred means for caching any Connector resources for use across operation calls. This cache is Boomi account specific, so login/credential based information may be put in this cache. Note, however that a given Boomi account may still have multiple connector service accounts, so the cache information should take that into account (e.g. by caching information based on the service username). The lifetime of this cache is defined by the lifetime of the Connector instance (so, essentially indefinite), and, among other things, the objects in this cache must be used in a thread-safe manner.
-
getConnectionProperties
PropertyMap getConnectionProperties()
Returns the relevant connection properties if this connector has therequireConnectionForBrowse
flag enabled in the connector's descriptor.
-
-