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