StatusResponse

public class StatusResponse extends BodyElement

An ebXML StatusResponse in the SOAP Body of a HeaderContainer [ebMSS 7.1.2].

Author:cyng

Fields

ATTRIBUTE_MESSAGE_STATUS

static final String ATTRIBUTE_MESSAGE_STATUS

Name of the messageStatus attribute.

ELEMENT_REF_TO_MESSAGE_ID

static final String ELEMENT_REF_TO_MESSAGE_ID

Name of the RefToMessageID element.

ELEMENT_TIMESTAMP

static final String ELEMENT_TIMESTAMP

Name of the Timestamp element.

STATUS_RESPONSE

static final String STATUS_RESPONSE

StatusRequest element name

Constructors

StatusResponse

StatusResponse(SOAPEnvelope soapEnvelope, String refToMessageId, String messageStatus)

Constructs a StatusResponse with the given mandatory fields

Parameters:
  • soapEnvelopeSOAPEnvelope to which the status response element will be added.
  • refToMessageId – Identifier of the message whose status is being reported. [ebMSS 7.3.1].
  • messageStatus – Message status response string [ebMSS 7.3.3].
Throws:
  • SOAPException

StatusResponse

StatusResponse(SOAPEnvelope soapEnvelope, String refToMessageId, String messageStatus, String timestamp)

Constructs a StatusResponse with the given mandatory fields

Parameters:
  • soapEnvelopeSOAPEnvelope to which the status response element will be added.
  • refToMessageId – Identifier of the message whose status is being reported. [ebMSS 7.3.1].
  • messageStatus – Message status response string [ebMSS 7.3.3].
  • timestamp – Timestamp of the message the status is being reported.
Throws:
  • SOAPException

StatusResponse

StatusResponse(SOAPEnvelope soapEnvelope, SOAPElement soapElement)

Constructs a StatusResponse object by parsing the given SOAPElement.

Parameters:
  • soapEnvelopeSOAPEnvelope to which the status response element will be added.
  • soapElementSOAPElement from which a StatusResponse object is constructed.
Throws:
  • SOAPException

Methods

getMessageStatus

public String getMessageStatus()

Gets the status of the message whose status is reported.

Returns:Message status.

getRefToMessageId

public String getRefToMessageId()

Gets Identifier of the message whose status is reported.

Returns:Identifier of the message being referred.

getTimestamp

public String getTimestamp()

Get the timestamp of the message when it was received by the party who reported its status.

Returns:Message timestamp when it was received.