public abstract class BaseDelegate extends java.lang.Object implements ConnectorCallback
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
Constructor and Description |
---|
BaseDelegate(ContainerServices services) |
Modifier and Type | Method and Description |
---|---|
void |
asyncFailure(long id,
java.lang.Exception e)
Notify host application of any async failures.
|
void |
asyncRequestSuccess(long id,
java.lang.Object response)
Notify host application of async service response
|
void |
asyncSendSuccess(long id)
Notify host application of async output send status
|
void |
createConnector(java.lang.String providerName,
java.lang.String name) |
protected abstract Connector |
createConnectorInternal(ConnectorFactory factory,
java.lang.String name) |
Connector |
getConnector() |
ContainerServices |
getServices() |
void |
initialiseConnector(java.lang.String name,
java.util.Properties properties) |
void |
processInboundData(java.lang.Object data,
java.util.Properties properties)
Notify host application of inbound data
|
void |
terminateConnector() |
public static final java.lang.String COPYRIGHT
public BaseDelegate(ContainerServices services)
public ContainerServices getServices()
public void createConnector(java.lang.String providerName, java.lang.String name) throws ConnectorException
ConnectorException
protected abstract Connector createConnectorInternal(ConnectorFactory factory, java.lang.String name) throws ConnectorException
ConnectorException
public Connector getConnector()
public void initialiseConnector(java.lang.String name, java.util.Properties properties) throws ConnectorException
ConnectorException
public void terminateConnector() throws ConnectorException
ConnectorException
public void processInboundData(java.lang.Object data, java.util.Properties properties)
ConnectorCallback
processInboundData
in interface ConnectorCallback
public void asyncSendSuccess(long id) throws ConnectorException
ConnectorCallback
asyncSendSuccess
in interface ConnectorCallback
id
- the ticket id returned by asyncSend()ConnectorException
public void asyncRequestSuccess(long id, java.lang.Object response) throws ConnectorException
ConnectorCallback
asyncRequestSuccess
in interface ConnectorCallback
id
- the ticket id returned by asyncRequest()ConnectorException
public void asyncFailure(long id, java.lang.Exception e) throws ConnectorException
ConnectorCallback
asyncFailure
in interface ConnectorCallback
id
- the ticket id returned by an async operatione
- any occurring exceptionConnectorException