HOME

com.ireasoning.protocol.tl1
Class TL1ResponseMsg

java.lang.Object
  extended bycom.ireasoning.protocol.tl1.TL1OutputMsg
      extended bycom.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

Field Summary
 
Fields inherited from class com.ireasoning.protocol.tl1.TL1OutputMsg
DATE_FORMAT
 
Fields inherited from interface com.ireasoning.protocol.Msg
ERROR_TYPE
 
Method Summary
 String getCompletionCode()
          Returns the completion code
 String getRawMsg()
          Returns the received raw message.
 void setCTAG(String ctag)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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

HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.