Each sender must implement this interface. It has the following methods:
Method
init
Method description
Initializes the sender, based on the contents of the deliveryConfig object, which contains gateway configuration information
Syntax
public void init (Context context, Config deliveryConfig) throws BCGSenderException
Parameters
Method
send
Method description
Called by the SenderFramework. It sends the document to the destination using the information specified in the deliveryConfig object. It creates and updates the SenderResult object with delivery status, WBI-C and transport headers and, in the case of synchronous flow, the response document. If delivery fails, sender may try transport retries.
Syntax
public SenderResult send(BusinessDocumentInterface document)
Parameters
Method
cancel
Method description
Called by the SenderFramework. Stops message delivery and any transport retries.
Syntax
public SenderResult cancel()
Parameters
None.