AS2ConfigSender

public class AS2ConfigSender extends SOAPSender

The AS2ConfigSender is a client sender sending SOAP web services request to B2BCollector AS2 plugin for configurating the performance factor. The web service parameters are defined in the below:

<active-module-status> true | false </active-module-status>
<inmessage-interval>15000</inmessage-interval>
<inmessage-maxthread>0</inmessage-maxthread>
<outmessage-interval>15000</outmessage-interval>
<outmessage-maxthread>0</outmessage-maxthread>
<outpayload-interval>15000</outpayload-interval>
<outpayload-maxthread>0</outpayload-maxthread>
Author:Twinsen Tsang

Constructors

AS2ConfigSender

public AS2ConfigSender(FileLogger l, AS2ConfigData data)

Explicit Constructor.

Parameters:
  • l – The logger used for log message and exception.
  • data – The AS2 Configuration parameters.

Methods

getStatus

public String getStatus()
Returns:Get the result status for the last successful web services call.

initializeMessage

public void initializeMessage()

The SOAPRequest in the creation stage should be liked this.

Throws:
  • Exceptions

main

public static void main(String[] args)

The main method is for CLI mode.

onResponse

public void onResponse()

Get the SOAP Body and analyze the result of configuration.

The result of SOAP body:

<status>success | fail</status>

onStart

public void onStart()

[@EVENT] The method onStart log all new configuration.