SFRMAcknowledgementBuilder¶
-
public class
SFRMAcknowledgementBuilder
¶ Author: Patrick Yip To build the SFRM Acknowledgement content body
Fields¶
Constructors¶
Methods¶
getMessageSegmentXPath¶
setMessage¶
-
public Element
setMessage
(String messageId, String status)¶ Set the message information to the acknowledgment content, if the message is not present, it will create an entry, otherwise it will modify the entry
Parameters: - messageId – message id
- status – message status
Returns: the newly created or modified XML element
setSegment¶
-
public Element
setSegment
(String messageId, int segmentNum, String segmentStatus)¶ Set the message segment information for a given message id, if the message segment is present, it will create one, otherwise it will modify the existing entry
Parameters: - messageId – message id for message segment
- segmentNum – segment number
- segmentStatus – segment status
Throws: - IllegalArgumentException – if the given message id is not existing in the acknowledgment content
Returns: the newly created or modified XML element