The SenderResult object is created by the sender based on this provided class. It holds meta information on the status of the request business document, and, in the case of synchronous flow, a reference to the File object containing the response document. It contains the following methods:
Method
addEvent
Method description
Adds an event to the SenderResult object
Syntax
public void addEvent(EventInfo)
Parameters
Method
getEvents
Method description
Retrieves the events set in this object
Syntax
public EventInfo[] getEvents()
Parameters
None
Method
setSendStatus
Method description
Sets delivery status. Can be success or failure based on transmission status.
Syntax
public void setSendStatus(String status)
Parameters
Method
getSendStatus
Method description
Retrieves the delivery status
Syntax
public String getSendStatus()
Parameters
None
Method
setResponseDocument
Method description
Sets the File that holds the response document.
Syntax
public void setResponseDocument(File responseFile)
Parameters
Method
getResponseDocument
Method description
Retrieves the File object which holds the response document
Syntax
public File getResponseDocument()
Parameters
None
Method
setTransportStatusCode
Method description
Sets the transport return status code (like HTTP 200 OK)
Syntax
public void setTransportStatusCode(Object transportStatusCode)
Parameters
Method
getTransportStatusCode
Method description
Retrieves the transport return status code
Syntax
public Object getTransportStatusCode()
Parameters
None
Method
setTransportHeaders
Method description
Sets these headers upon receiving synchronous response
Syntax
public void setTransportHeaders(HashMap transportHeaders)
Parameters
Method
getTransportHeaders
Method description
Retrieves the transport headers set by the sender
Syntax
public HashMap getTransportHeaders()
Parameters
None
Method
setAttribute
Method description
Sets WBI-C specific attributes. These attributes contain headers specific to senders. They are used by the Framework as input into the metadata file: delivery duration, transport status description, etc.
Syntax
public void setAttribute(String name, Object obj)
Parameters
Method
getAttribute
Method description
Retrieves the WBI-C specific attributes
Syntax
public Object getAttribute()
Parameters
None
Method
getAttributes
Method description
Retrieves HashMap of all attributes set
Syntax
public Map getAttributes set()
Parameters
None