Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.wilko.jaim
Class ErrorTocResponse  view ErrorTocResponse download ErrorTocResponse.java

java.lang.Object
  extended bycom.wilko.jaim.TocResponse
      extended bycom.wilko.jaim.ErrorTocResponse
All Implemented Interfaces:
TocResponseHandler

public class ErrorTocResponse
extends TocResponse
implements TocResponseHandler

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:
parseString in interface TocResponseHandler

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:
getResponseType in class TocResponse

canHandle

public boolean canHandle(java.lang.String Response)
Returns true if this response handler can handle the specified response.

Specified by:
canHandle in interface TocResponseHandler