com.ireasoning.protocol.tl1
Class TL1ResponseMsg
java.lang.Object
com.ireasoning.protocol.tl1.TL1OutputMsg
com.ireasoning.protocol.tl1.TL1ResponseMsg
- All Implemented Interfaces:
- Msg, Serializable
- public class TL1ResponseMsg
- extends TL1OutputMsg
This class is a representation of the non-autonomous message. Response
message contains header and payload sections.
The response
message has the following format:
<cr><lf><lf>
<sp><sp><sp><SID><sp><YY-MM-DD><sp><HH:MM:SS><cr><lf>
M<sp><sp><CTAG><sp>COMPLD<cr><lf> (Header section)
<sp><sp><sp>"<payload data>"<cr><lf>; (Payload section)
Note:
<sp>: white space
<lf>: line feed
<cr>: carriage return
<SID>: source identifier
<CTAG>: correlation tag
- See Also:
- Serialized Form
Fields inherited from interface com.ireasoning.protocol.Msg |
ERROR_TYPE |
Methods inherited from class com.ireasoning.protocol.tl1.TL1OutputMsg |
getCTAG, getDate, getHeader, getPayloadData, getSID, getTerminationCode, getTime, getTimestamp, getType, setDate, setSID, setTerminationCode, setTime, setTimestamp, toString, updateTimestamp |
setCTAG
public void setCTAG(String ctag)
getCompletionCode
public String getCompletionCode()
- Returns the completion code
- See Also:
TL1CompletionCode.COMPLD
,
TL1CompletionCode.DENY
,
TL1CompletionCode.PRTL
,
TL1CompletionCode.DELAY
,
TL1CompletionCode.RTRV
getRawMsg
public String getRawMsg()
- Returns the received raw message. However, it does not have the echo
message and skip some white spaces.
For example:
NODE 00-11-20 13:37:26
M 0 COMPLD
"TID=NODE_1_9,PORT=1029"
- Overrides:
getRawMsg
in class TL1OutputMsg
Copyright © 2002 iReasoning Inc. All Rights Reserved.