|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.wilko.jaim.TocResponse | +--com.wilko.jaim.ErrorTocResponse
This TOC response is sent to a JaimEventListener
when an error message is received from the TOC server
Field Summary | |
static java.lang.String |
RESPONSE_TYPE
|
Fields inherited from class com.wilko.jaim.TocResponse |
cmd |
Constructor Summary | |
ErrorTocResponse()
Creates new ErrorTocResponse |
Method Summary | |
boolean |
canHandle(java.lang.String Response)
Returns true if this response handler can handle the specified response. |
int |
getErrorCode()
Obtain the error code for this response |
java.lang.String |
getErrorDescription()
Obtain the error message that corresponds to this error. |
static java.lang.String |
getErrorDescription(int code)
Obtain the error message that corresponds to the specified error code |
java.lang.String |
getErrorText()
Get the error text (if any) associated with this error response |
java.lang.String |
getResponseType()
|
TocResponse |
parseString(java.lang.String str)
Parse the error response string sent by the TOC server |
Methods inherited from class com.wilko.jaim.TocResponse |
toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String RESPONSE_TYPE
Constructor Detail |
public ErrorTocResponse()
Method Detail |
public TocResponse parseString(java.lang.String str)
parseString
in interface TocResponseHandler
str
- The error response string
public int getErrorCode()
public java.lang.String getErrorText()
public java.lang.String getErrorDescription()
public static java.lang.String getErrorDescription(int code)
code
- The error code
public java.lang.String getResponseType()
getResponseType
in class TocResponse
public boolean canHandle(java.lang.String Response)
canHandle
in interface TocResponseHandler
Response
- - the response string from TOC. This is the part of the response before the first ':'
|
jaimlib.sourceforge.net | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |