f00f.net.irc.martyr.replies
Class AbstractWhoisReply

java.lang.Object
  extended by f00f.net.irc.martyr.commands.AbstractInCommand
      extended by f00f.net.irc.martyr.replies.GenericReply
          extended by f00f.net.irc.martyr.replies.AbstractWhoisReply
All Implemented Interfaces:
Command, InCommand
Direct Known Subclasses:
WhoisChannelsReply, WhoisEndReply, WhoisIdleReply, WhoisServerReply, WhoisUserReply

public abstract class AbstractWhoisReply
extends GenericReply


Field Summary
 
Fields inherited from class f00f.net.irc.martyr.commands.AbstractInCommand
attributes
 
Constructor Summary
AbstractWhoisReply()
          Factory constructor.
AbstractWhoisReply(java.lang.String params)
           
 
Method Summary
abstract  java.lang.String getIrcIdentifier()
          Returns the string IRC uses to identify this command.
protected  ParameterIterator getParams(java.lang.String params)
           
 java.lang.String getTarget()
           
protected abstract  void parseParams(ParameterIterator pi)
          Parse the parameters, but the target param has already been stripped off.
 
Methods inherited from class f00f.net.irc.martyr.commands.AbstractInCommand
getAttribute, getAttributeKeys, getIntParameter, getParameter, getSourceString, getState, parse, selfRegister, setAttribute, setSourceString, updateClientState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractWhoisReply

public AbstractWhoisReply()
Factory constructor.


AbstractWhoisReply

public AbstractWhoisReply(java.lang.String params)
Method Detail

getIrcIdentifier

public abstract java.lang.String getIrcIdentifier()
Description copied from interface: Command
Returns the string IRC uses to identify this command. Examples: NICK, PING, KILL, 332. Not strictly required for OutCommands as the irc identifier is expected to be part of the reder() result.

Returns:
The IRC identifier string

parseParams

protected abstract void parseParams(ParameterIterator pi)
Parse the parameters, but the target param has already been stripped off.

Parameters:
pi - Parameter iterator that will parse the parameters

getTarget

public java.lang.String getTarget()
Returns:
the target of the whois

getParams

protected ParameterIterator getParams(java.lang.String params)
Parameters:
params - the params string passed to "parse".
Returns:
a parameter iterator, with the whois target already stripped off.


Copyright © 2000-2007 Ben Damm, Daniel Henninger, et al.