|
|||||||||
| Home >> All >> com >> wilko >> [ jaim overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.wilko.jaim
Class ErrorTocResponse

java.lang.Objectcom.wilko.jaim.TocResponse
com.wilko.jaim.ErrorTocResponse
- All Implemented Interfaces:
- TocResponseHandler
- public class ErrorTocResponse
- extends TocResponse
- implements TocResponseHandler
- extends TocResponse
This TOC response is sent to a JaimEventListener when an error message is received from the TOC server
- Version:
- $Revision: 1.7 $
| Field Summary | |
(package private) int |
errorCode
|
(package private) java.lang.String |
errorText
|
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. |
private void |
doParse(java.lang.String str)
|
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 |
errorCode
int errorCode
errorText
java.lang.String errorText
RESPONSE_TYPE
public static final java.lang.String RESPONSE_TYPE
- See Also:
- Constant Field Values
| Constructor Detail |
ErrorTocResponse
public ErrorTocResponse()
- Creates new ErrorTocResponse
| Method Detail |
parseString
public TocResponse parseString(java.lang.String str)
- Parse the error response string sent by the TOC server
- Specified by:
parseStringin interfaceTocResponseHandler
doParse
private void doParse(java.lang.String str)
getErrorCode
public int getErrorCode()
- Obtain the error code for this response
getErrorText
public java.lang.String getErrorText()
- Get the error text (if any) associated with this error response
getErrorDescription
public java.lang.String getErrorDescription()
- Obtain the error message that corresponds to this error.
getErrorDescription
public static java.lang.String getErrorDescription(int code)
- Obtain the error message that corresponds to the specified error code
getResponseType
public java.lang.String getResponseType()
- Specified by:
getResponseTypein classTocResponse
canHandle
public boolean canHandle(java.lang.String Response)
- Returns true if this response handler can handle the specified response.
- Specified by:
canHandlein interfaceTocResponseHandler
|
|||||||||
| Home >> All >> com >> wilko >> [ jaim overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC