public class SimpleBrowseContext extends SimpleAtomContext implements BrowseContext
Constructor and Description |
---|
SimpleBrowseContext(AtomConfig config,
Connector connector,
OperationType opType,
Map<String,Object> connProps,
Map<String,Object> opProps)
Constructs a new SimpleBrowseContext
|
SimpleBrowseContext(AtomConfig config,
Connector connector,
OperationType opType,
String customOpType,
Map<String,Object> connProps,
Map<String,Object> opProps)
Constructs a new SimpleBrowseContext
|
Modifier and Type | Method and Description |
---|---|
PropertyMap |
getConnectionProperties()
Returns the relevant connection properties if this connector has the
requireConnectionForBrowse 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.
|
String |
getCustomOperationType()
Returns the custom type of the operation that is currently being configured.
|
PropertyMap |
getOperationProperties()
Returns any operation properties flagged as
includeInBrowse for the current OperationType in the
connector's descriptor. |
OperationType |
getOperationType()
Returns the currently configured OperationType
|
SSLContext |
getSSLContext(PublicKeyStore publicKeyStore,
PrivateKeyStore privateKeyStore)
TODO CON-601 pull up in 2.1
Returns a
SSLContext . |
createSSLContext, createTempOutputStream, getConfig, tempOutputStreamToInputStream, tempOutputStreamToPayload
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTempOutputStream, getConfig, tempOutputStreamToInputStream, tempOutputStreamToPayload
public SimpleBrowseContext(AtomConfig config, Connector connector, OperationType opType, Map<String,Object> connProps, Map<String,Object> opProps)
config
- the basic config for browsingopType
- the type of operation for browsingconnProps
- the connection properties for browsing, may be null
opProps
- the operation properties for browsing, may be null
public SimpleBrowseContext(AtomConfig config, Connector connector, OperationType opType, String customOpType, Map<String,Object> connProps, Map<String,Object> opProps)
config
- the basic config for browsingopType
- the type of operation for browsingcustomOpType
- the custom type of operation for browsingconnProps
- the connection properties for browsing, may be null
opProps
- the operation properties for browsing, may be null
public Connector getConnector()
ConnectorContext
getConnector
in interface ConnectorContext
public OperationType getOperationType()
BrowseContext
getOperationType
in interface BrowseContext
public String getCustomOperationType()
BrowseContext
getCustomOperationType
in interface BrowseContext
public PropertyMap getConnectionProperties()
ConnectorContext
requireConnectionForBrowse
flag
enabled in the connector's descriptor.getConnectionProperties
in interface ConnectorContext
public PropertyMap getOperationProperties()
BrowseContext
includeInBrowse
for the current OperationType in the
connector's descriptor.getOperationProperties
in interface BrowseContext
public ConcurrentMap<Object,Object> getConnectorCache()
ConnectorContext
getConnectorCache
in interface ConnectorContext
public SSLContext getSSLContext(PublicKeyStore publicKeyStore, PrivateKeyStore privateKeyStore) throws GeneralSecurityException
BrowseContext
SSLContext
. Passing null
for public and private key stores will make an attempt to
configure it to use trusted JVM and deployed atom certificates if called during an operation execution.getSSLContext
in interface BrowseContext
GeneralSecurityException