AS2ReceiverSender

public class AS2ReceiverSender extends AS2MessageSender

The AS2ReceiverSender is a client sender sending SOAP web services request to Hermes Messaging Gateway AS2 plugin for down-loading the AS2 message and it’s corresponding payload.

Author:Twinsen Tsang

Constructors

AS2ReceiverSender

public AS2ReceiverSender(FileLogger l, AS2MessageData m, AS2PartnershipData ps)

Explicit Constructor.

Parameters:
  • l – The logger used for log message and exception.
  • m – The message data for party information and send/recv configuration.
  • ps – The partnership data.

Methods

getMessageIdToRetreive

public String getMessageIdToRetreive()
Returns:the message id to retreive.

getOutputDirectory

public String getOutputDirectory()
Returns:the output directory of the received payload.

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()

Retrieve the payload from the message. The default receiver stores the payload as a files at the particular place specified in the configuration.

onStart

public void onStart()

Initialize the SOAP Message.

setMessageIdToRetreive

public void setMessageIdToRetreive(String messageId)
Parameters:
  • messageId – the message id to retreive the payload / message.

setOutputDirectory

public void setOutputDirectory(String path)

Set the output directory of received payload if any.