|
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.http.TspHttpResponse
public class TspHttpResponse
Wrapper class for the supported response formats of a HTTP request.
Constructor Summary | |
---|---|
TspHttpResponse(int httpCode,
java.lang.String errorMsg)
Creates a TspHttpResponse representing an HTTP error. |
|
TspHttpResponse(TimeStampResp response)
Creates a TspHttpResponse containing a TimeStampResp . |
Method Summary | |
---|---|
java.lang.String |
getErrorMsg()
Returns the error message or null if this response is a finalMsgRep . |
int |
getHttpCode()
Returns the received HTTP code. |
TimeStampResp |
getTimeStampResp()
Returns the TimeStampResp or null if this response is an HTTP error. |
boolean |
isErrorResponse()
Indicates whether this response is an HTTP error 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 TspHttpResponse(TimeStampResp response)
TspHttpResponse
containing a TimeStampResp
.
response
- The TimeStampResp
.public TspHttpResponse(int httpCode, java.lang.String errorMsg)
TspHttpResponse
representing an HTTP error.
httpCode
- The received HTTP code.errorMsg
- The error message.Method Detail |
---|
public TimeStampResp getTimeStampResp()
TimeStampResp
or null
if this response is an HTTP error.
TimeStampResp
or null
.public java.lang.String getErrorMsg()
null
if this response is a finalMsgRep
.
null
.public int getHttpCode()
public boolean isErrorResponse()
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 |