Acknowledgment

public class Acknowledgment extends HeaderElement

An ebXML Acknowledgment in the SOAP Header of a HeaderContainer [ebMSS 6.3.2].

Author:cyng

Fields

ACKNOWLEDGMENT

static final String ACKNOWLEDGMENT

Acknowledgment element name

Constructors

Acknowledgment

Acknowledgment(SOAPEnvelope soapEnvelope, String timestamp, EbxmlMessage refToMessage, String fromPartyId, String fromPartyIdType)

Constructs an Acknowledgment with the given mandatory fields.

Parameters:
  • soapEnvelopeSOAPEnvelope, the header container of which the Acknowledgement is attached to.
  • timestamp – The time the message service handler received the message to be acknowledged.
  • refToMessage – The message this acknowledgement response is referring to.
  • fromPartyId – The identifier of the party generating the acknowledgement response message.
  • fromPartyIdType – PartyId type
Throws:
  • SOAPException

Acknowledgment

Acknowledgment(SOAPEnvelope soapEnvelope, SOAPElement soapElement)

Constructs an Acknowledgement object by parsing the given SOAPElement.

Parameters:
  • soapEnvelopeSOAPEnvelope, the header container of which the Acknowledgement is attached to.
  • soapElementSOAPElement containing acknowledgement response.
Throws:
  • SOAPException

Methods

addFromPartyId

public void addFromPartyId(String id)

Add sender’s PartyID into this Acknowledgement

Parameters:
  • id – Sender’s PartyID string.
Throws:
  • SOAPException

addFromPartyId

public void addFromPartyId(String id, String type)

Add sender’s PartyID and its type into this Acknowledgement

Parameters:
  • id – Sender’s PartyID string.
  • type – PartyID type.
Throws:
  • SOAPException

addSignatureReference

public void addSignatureReference(SignatureReference reference)

getFromPartyIds

public Iterator getFromPartyIds()

Get the identifiers of the party generating the acknowledgement response

Returns:Iterator of MessageHeader.PartyId

getRefToMessageId

public String getRefToMessageId()

Get the identifier of the message being acknowledged.

Returns:Identifier of the message being acknowledged.

getSignatureReferences

public Iterator getSignatureReferences()

getTimestamp

public String getTimestamp()

Get the time that the message being acknowledged is received.

Returns:Timestamp expressed in UTC format.