EBMSReceiverListSender

public class EBMSReceiverListSender extends MessageSender

The EBMSReceiverListSender is a client sender sending SOAP web services request to H2O EbMS plugin for query whether if there is any message that are available. The web service parameters are defined in the below:

<part name="cpaId" type="s:string" />
<part name="service" type="s:string" />
<part name="action" type="s:string" />
<part name="convId" type="s:string" />
<part name="fromPartyId" type="s:string" />
<part name="fromPartyType" type="s:string" />
<part name="toPartyId" type="s:string" />
<part name="toPartyType" type="s:string" />
<part name="numOfMessages" type="s:int" />
Author:Twinsen Tsang

Constructors

EBMSReceiverListSender

public EBMSReceiverListSender(FileLogger l, EBMSMessageData m, EBMSPartnershipData 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.

main

public static void main(String[] args)

The main method is for CLI mode.

onResponse

public void onResponse()

[@EVENT] Record all the EbMS message that ready to download. Developer should invocate getAvailableMessages() to get a list of all ready EbMS message.

onStart

public void onStart()

Initialize the SOAP Message.

setNumOfMessageToRetrieve

public void setNumOfMessageToRetrieve(int numMsgs)

Set number of message to retrieve for one soap call.

Parameters:
  • numMsgs – number of message to retrieve for one soap call.