remove
Called by the receiver when it detects a nonrecoverable condition. The receiver should call this method only if it cannot continue receiving. The framework marks this receiver for removal and returns immediately. Later the stopReceiving method will be called on the receiver object.
public void remove(String transportType) throws BCGReceiverException
preProcess
Called by the receiver to preprocess the document. The Receiver Framework invokes preprocessing handlers configured in the console for this target. The framework invokes the applies method of the handlers (by passing the request document as input) one after the other (in the same sequence as they are configured in console), until a handler's applies method returns true. The Receiver Framework then executes this handler's process method to process the request document. This method returns an array of receiver documents.
public ReceiverDocumentInterface[] preProcess( String transportType, String target, ReceiverDocumentInterface request) throws BCGReceiverException
syncCheck
Called by the receiver to determine whether the received document should be processed synchronously or asynchronously. The Receiver Framework invokes syncCheck handlers configured in the console for this target. The framework then invokes the applies method of each handler one after the other (in the same sequence as they are configured in console), until a handler's applies method returns true. The Receiver Framework then executes this handler's syncCheck method to determine whether the request document should be processed synchronously or asynchronously. A value of true indicates that the request is synchronous. A value of false indicates that the request is configured to be asynchronous or that there are no syncCheck handlers configured for this receiver; the request should be handled asynchronously.
public boolean syncCheck(String transportType, String target, ReceiverDocumentInterface request) throws BCGReceiverException
postProcess
In the case of a synchronous request, the receiver calls the Receiver Framework to postprocess the response document. The Receiver Framework invokes postprocessing handlers configured in the console for this target. The framework invokes each handler's applies method by passing the response document as input one after the other (in the same sequence that they are configured in the console), until the applies method of a handler returns true. The Receiver Framework then executes this handler's process method to process the response document.
public ReceiverDocumentInterface[] postProcess( String receiverType, String target, ReceiverDocumentInterface request) throws BCGReceiverException
process
When this method is called, the framework generates a unique ID (UUID) and sets it on the request document. The receiver document is then introduced into the WebSphere Partner Gateway document manager. The method has three distinct signatures, depending on the type of processing required: asynchronous, blocking synchronous, or nonblocking synchronous.
public void process(String transportType, ReceiverDocumentInterface request) throws BCGReceiverException
This method returns immediately after introducing the document into WebSphere Partner Gateway document manager.
public void process(String transportType, ReceiverDocumentInterface request, ReceiverDocumentInterface response) throws BCGReceiverException
This method introduces the document into the WebSphere Partner Gateway document manager. The method does not return until a response is available.
public void process(String transportType, ReceiverDocumentInterface request, ResponseCorrelation responseCorr) throws BCGReceiverException
This method returns immediately after introducing the document into WebSphere Partner Gateway document manager. When a response is available, the Receiver Framework invokes the processResponse method on the receiver that made the process call. The Receiver Framework passes the correlation object that was passed in the process method. The receiver can use the response correlation object to correlate the request with the response document.
setResponseStatus
Notifies the framework of the status of the synchronous response document after it has been returned to the trading partner
public void setResponseStatus(String documentUUID, boolean status, String statusMessage) throws BCGReceiverException