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

Quick Search    Search Deep

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

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

public class GenericTocResponse
extends TocResponse
implements TocResponseHandler

A GenericTocResponse is used internally in the Response parsing and processing logic of JaimConnection

Version:
$Revision: 1.5 $

Field Summary
 
Fields inherited from class com.wilko.jaim.TocResponse
cmd
 
Constructor Summary
GenericTocResponse()
          Creates new GenericTocCommand
 
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)
           
 byte[] getBytes()
          Get a byte array that contains the response
 java.lang.String getResponseType()
          Used in the response dispatching process
 TocResponse parseString(java.lang.String str)
          Parse an incoming string
 java.lang.String toString()
          Convert this response to a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericTocResponse

public GenericTocResponse()
Creates new GenericTocCommand

Method Detail

parseString

public TocResponse parseString(java.lang.String str)
Parse an incoming string

Specified by:
parseString in interface TocResponseHandler

doParse

private void doParse(java.lang.String str)

getBytes

public byte[] getBytes()
Get a byte array that contains the response


toString

public java.lang.String toString()
Convert this response to a string

Overrides:
toString in class TocResponse

getResponseType

public java.lang.String getResponseType()
Used in the response dispatching process

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