|
IAIK TSP version 2.32 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object iaik.tsp.transport.tcpip.TspTcpIpResponse
public class TspTcpIpResponse
Wrapper class for the supported response formats finalMsgRep
and errorMsgRep
.
Constructor Summary | |
---|---|
TspTcpIpResponse(java.lang.String errorMsg)
Creates a TspTcpIpResponse representing an errorMsgRep . |
|
TspTcpIpResponse(TimeStampResp response)
Creates a TspTcpIpResponse containing a TimeStampResp . |
Method Summary | |
---|---|
java.lang.String |
getErrorMsg()
Returns the error message or null if this response is a finalMsgRep . |
TimeStampResp |
getTimeStampResp()
Returns the TimeStampResp or null if this response is an errorMsgRep . |
boolean |
isErrorResponse()
Indicates whether this is response is an errorMsgRep or not. |
java.lang.String |
toString()
Returns a string representation of this response. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TspTcpIpResponse(TimeStampResp response)
TspTcpIpResponse
containing a TimeStampResp
.
response
- The TimeStampResp
.public TspTcpIpResponse(java.lang.String errorMsg)
TspTcpIpResponse
representing an errorMsgRep
.
errorMsg
- The error message.Method Detail |
---|
public TimeStampResp getTimeStampResp()
TimeStampResp
or null
if this response is an errorMsgRep
.
TimeStampResp
or null
.public java.lang.String getErrorMsg()
null
if this response is a finalMsgRep
.
null
.public boolean isErrorResponse()
errorMsgRep
or not.
errorMsgRep
otherwise false.public java.lang.String toString()
toString
in class java.lang.Object
TimeStampResp.toString()
|
This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |