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 a synchronous flow, a reference to the File object containing the response document. It contains the following methods:
addEvent
Adds an event to the SenderResult object
public void addEvent(EventInfo eventInf)
getEvents
Retrieves the events set in this object
public EventInfo[] getEvents()
None
setSendStatus
Sets the delivery status. which can be success or failure based on transmission status.
public void setSendStatus(String status)
getSendStatus
Retrieves the delivery status
public String getSendStatus()
None
setResponseDocument
Sets the file that holds the response document.
public void setResponseDocument(File responseFile)
getResponseDocument
Retrieves the File object which holds the response document
public File getResponseDocument()
None
setTransportStatusCode
Sets the transport return status code (like HTTP 200 OK)
public void setTransportStatusCode(Object transportStatusCode)
getTransportStatusCode
Retrieves the transport return status code
public Object getTransportStatusCode()
None
setTransportHeaders
Sets these headers upon receiving a synchronous response.
public void setTransportHeaders(HashMap transportHeaders)
getTransportHeaders
Retrieves the transport headers set by the sender
public HashMap getTransportHeaders()
None
setAttribute
Sets attributes specific to WebSphere Partner Gateway. These attributes contain headers specific to senders. They are used by the Framework as input into the metadata file: delivery duration, transport status description, and so forth.
public void setAttribute(String name, Object obj)
getAttribute
Retrieves the attributes specific to WebSphere Partner Gateway
public Object getAttribute()
None
getAttributes
Retrieves HashMap of all attributes set
getAttributes()
None