com.ibm.connectors.container
Class RequestDelegate
- java.lang.Object
-
- com.ibm.connectors.container.BaseDelegate
-
- com.ibm.connectors.container.RequestDelegate
-
- All Implemented Interfaces:
- ConnectorCallback
- Direct Known Subclasses:
- NativeRequestDelegate
public class RequestDelegate extends BaseDelegate
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringCOPYRIGHT
-
Constructor Summary
Constructors Constructor and Description RequestDelegate(ContainerServices services)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidasyncFailure(long id, java.lang.Exception e)Notify host application of any async failures.longasyncRequest(java.util.Properties overrideProperties, java.lang.Object data)voidasyncRequestSuccess(long id, java.lang.Object response)Notify host application of async service responseprotected ConnectorcreateConnectorInternal(ConnectorFactory factory, java.lang.String name)RequestInteractioncreateInteraction()RequestConnectorgetRequestConnector()java.lang.Objectrequest(java.util.Properties overrideProperties, java.lang.Object data)-
Methods inherited from class com.ibm.connectors.container.BaseDelegate
asyncSendSuccess, createConnector, getConnector, getServices, initialiseConnector, processInboundData, terminateConnector
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RequestDelegate
public RequestDelegate(ContainerServices services)
-
-
Method Detail
-
createConnectorInternal
protected Connector createConnectorInternal(ConnectorFactory factory, java.lang.String name) throws ConnectorException
- Specified by:
createConnectorInternalin classBaseDelegate- Throws:
ConnectorException
-
getRequestConnector
public RequestConnector getRequestConnector()
-
request
public java.lang.Object request(java.util.Properties overrideProperties, java.lang.Object data) throws ConnectorException- Throws:
ConnectorException
-
asyncRequest
public long asyncRequest(java.util.Properties overrideProperties, java.lang.Object data) throws ConnectorException- Throws:
ConnectorException
-
createInteraction
public RequestInteraction createInteraction() throws ConnectorException
- Throws:
ConnectorException
-
asyncRequestSuccess
public void asyncRequestSuccess(long id, java.lang.Object response) throws ConnectorExceptionDescription copied from interface:ConnectorCallbackNotify host application of async service response- Specified by:
asyncRequestSuccessin interfaceConnectorCallback- Overrides:
asyncRequestSuccessin classBaseDelegate- Parameters:
id- the ticket id returned by asyncRequest()- Throws:
ConnectorException
-
asyncFailure
public void asyncFailure(long id, java.lang.Exception e) throws ConnectorExceptionDescription copied from interface:ConnectorCallbackNotify host application of any async failures.- Specified by:
asyncFailurein interfaceConnectorCallback- Overrides:
asyncFailurein classBaseDelegate- Parameters:
id- the ticket id returned by an async operatione- any occurring exception- Throws:
ConnectorException
-
-