AS2ReceiverListSender¶
-
public class
AS2ReceiverListSender
extends MessageSender¶ The
AS2ReceiverListSender
is a client sender sending SOAP web services request to B2BCollectorAS2
plugin for query whether if there is any message that are available. The web service parameters are defined in the below:<part name="as2From" type="s:string" /> <part name="as2To" type="s:string" /> <part name="numOfMessages" type="s:int" />
Author: Twinsen Tsang
Constructors¶
AS2ReceiverListSender¶
-
public
AS2ReceiverListSender
(FileLogger l, AS2MessageData m, AS2PartnershipData p)¶ Explicit Constructor.
Parameters: - l – The logger used for log message and exception.
- m – The message data for party information and send/recv configuration.
- p – The partnership data.
Methods¶
getAvailableMessages¶
-
public List
getAvailableMessages
()¶ This method should be called after the event
onResponse()
Returns: a list of message id that are ready to download.
getNumOfMessageToRetrieve¶
-
public int
getNumOfMessageToRetrieve
()¶ Returns: number of message to retrieve for one soap call.
initializeMessage¶
-
public void
initializeMessage
()¶ Initialize the message using the properties in the MessageProps.
onResponse¶
-
public void
onResponse
()¶ [@EVENT] Record all the AS2 message that ready to download. Developer should invocate
getAvailableMessages()
to get a list of all ready AS2 message.