SignalMessageGenerator¶
-
public class
SignalMessageGenerator
¶ SignalMessageGenerator
is an utility api for the user to generate some signal messageAuthor: pykoon
Methods¶
generateAcknowledgment¶
-
public static EbxmlMessage
generateAcknowledgment
(EbxmlMessage ackRequestedMessage, String refToMessageId)¶ Generates acknowledgement message from the given acknowledgement request message and the refToMessageId. Note that the acknowledgment message is not signed.
Parameters: - ackRequestedMessage – Acknowledgement request message.
- refToMessageId – MessageId of the message to which the acknowledgement response should be referred.
Throws: - SOAPException –
Returns: Acknowledgement message.
generateAcknowledgment¶
-
public static EbxmlMessage
generateAcknowledgment
(EbxmlMessage ackRequestedMessage)¶ Generates acknowledgement message from the given acknowledgement request message and the refToMessageId. Note that the acknowledgment message is not signed.
Parameters: - ackRequestedMessage – Acknowledgement request message.
Throws: - SOAPException –
Returns: Acknowledgement message.
generateErrorMessage¶
-
public static EbxmlMessage
generateErrorMessage
(EbxmlMessage ebxmlMessage, String errorCode, String severity, String description, String location)¶ Generates an error message containing the specfied error code [ebMSS 4.2.3.4.1].
Parameters: - ebxmlMessage – ebXML message to which error list should be attached.
- errorCode – Error code of the message.
- severity – Error severity, either ERROR or WARNING.
- description – Human-readable description of the error message.
- location – Source of the error.
Throws: - SOAPException –
Returns: ebXML message containing error code.
generateErrorMessageBySender¶
-
public static EbxmlMessage
generateErrorMessageBySender
(EbxmlMessage ebxmlMessage, String errorCode, String severity, String description, String location)¶
generatePongMessage¶
-
public static EbxmlMessage
generatePongMessage
(EbxmlMessage pingMessage)¶ Generates pong message from the given ping message [ebMSS 8.2].
Parameters: - pingMessage – Incoming ping message.
Throws: - SOAPException –
Returns: Pong message in response of the incoming ping message.
generateStatusResponseMessage¶
-
public static EbxmlMessage
generateStatusResponseMessage
(EbxmlMessage statusRequestMessage, String status, Date timestamp)¶ Generates response message from the given status request message and the status string [ebMSS 7.1.2].
Parameters: - statusRequestMessage – Status request message.
- status – Current status of the message service handler.
Throws: - SOAPException –
Returns: Status response message.