com.wilko.jaim
Interface TocResponseHandler

All Known Implementing Classes:
BuddyUpdateTocResponse, ConfigTocResponse, ErrorTocResponse, EvilTocResponse, GenericTocResponse, GotoTocResponse, IMTocResponse, NickTocResponse, SignOnTocResponse

public interface TocResponseHandler

Version:
$revision: $
Author:
paulw

Method Summary
 boolean canHandle(java.lang.String Response)
          Returns true if this response handler can handle the specified response.
 TocResponse parseString(java.lang.String Response)
          Parse the provided response
 

Method Detail

canHandle

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

Parameters:
Response - - the response string from TOC. This is the part of the response before the first ':'
Returns:
true if the response can be handled

parseString

public TocResponse parseString(java.lang.String Response)
Parse the provided response

Parameters:
Response - - the response from the TOC server. This is the full TOC response string
Returns:
- A TocResponse object that represents this response

jaimlib.sourceforge.net