MessageSender¶
-
public abstract class
MessageSender
extends SOAPSender¶ The
MessageSender
is the abstract class which is used to send SOAP messsage request to B2B Collector series product.Author: Joel Matsumoto, Twinsen Tsang
Constructors¶
MessageSender¶
-
public
MessageSender
(FileLogger l, Data m, Data p)¶ Explicit Constructor.
Parameters: - l – The logger used for log message and exception.
- m – The message properties including how many message need to be sent and some performance parameter.
- p – The partnership properties used for sending.
Methods¶
addRequestPayload¶
getContentType¶
getElapsedTime¶
-
public long
getElapsedTime
()¶ Get how long it tasks for the sender to do it’s tasks.
Returns: The times for the task from start to end in milleseconds.
getResponsePayloads¶
-
public Payload[]
getResponsePayloads
()¶ Get the payload from the SOAP response. This should be called during
onResponse()
.Throws: - SOAPException – When unable to extract the payload in the SOAP Response.
- IOException – When unable to open the input stream for the payload.
Returns: A set of payload in SOAP message.