AS2MessageData

public class AS2MessageData extends KVPairData

The AS2MessageData is the data structure representing the parameters set for sending as2 messagw with payload to Hermes2. This is the sample WSDL request for the message status WS request.

<as2_from>as2loopback</as2_from>
<as2_to>as2loopback</as2_to>
<type>xml</type>

The first three parameters are derived from AS2PartnershipData.getAS2From() and AS2PartnershipData.getAs2To().

Author:Twinsen Tsang

Fields

CONFIG_KEY_SET

public static final String[] CONFIG_KEY_SET

This is the configuration key set for XML serialization / de-serialization.

CONFIG_PREFIX

public static final String CONFIG_PREFIX

This is the configuration prefix for serialization / de-serialization.

PARAM_KEY_SET

public static final String[] PARAM_KEY_SET

This is the key set for XML serialization / de-serialization.

PARAM_PREFIX

public static final String PARAM_PREFIX

This is the param prefix for serialzation / de-serialization.

Constructors

AS2MessageData

public AS2MessageData()

Default Constructor.

Methods

getMessageIdForReceive

public String getMessageIdForReceive()

Get the Message ID that targeted to retrieve

Returns:the value of Message ID in the AS2 message.

getRecvEndpoint

public String getRecvEndpoint()
Returns:Get the web service End-point for receiving AS2 message from CORVUS.

getRecvlistEndpoint

public String getRecvlistEndpoint()
Returns:Get the web service End-point for receiving a list of AS2 message which are ready to down-load from CORVUS.

getSendEndpoint

public String getSendEndpoint()
Returns:Get the web service End-point for sending AS2 message to CORVUS.

getType

public String getType()

Get the type of the payload.

Returns:the type of payload in the AS2 message.

setMessageIdForReceive

public void setMessageIdForReceive(String value)

Set the Message ID that targeted to retrieve

Parameters:
  • value – The Message ID of the AS2 message.

setRecvEndpoint

public void setRecvEndpoint(String endpoint)

Set the web service End-point for receiving AS2 message from CORVUS.

Parameters:
  • endpoint – The web service End-point for receiving AS2 message from CORVUS.

setRecvlistEndpoint

public void setRecvlistEndpoint(String endpoint)

Set the web service End-point for receiving a list of AS2 message which are ready to down-load from CORVUS.

Parameters:
  • endpoint – the web service End-point for receiving a list of AS2 message which are ready to download from CORVUS.

setSendEndpoint

public void setSendEndpoint(String endpoint)

Set the web service End-point for sending AS2 message to CORVUS.

Parameters:
  • endpoint – The web service End-point for sending AS2 message to CORVUS.

setType

public void setType(String type)

Set the type of the payload.

Parameters:
  • type – The type of payload in the AS2 message.

toString

public String toString()

toString method.