AS2MessageReceiver

public class AS2MessageReceiver extends MessageReceiver

Constructors

AS2MessageReceiver

public AS2MessageReceiver(FileLogger l, AS2MessageData m)

Methods

getMessageIdToRetreive

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

getOutputDirectory

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

getResponsePayloads

public Payload[] getResponsePayloads()

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.