f00f.net.irc.martyr.commands
Class WhoisCommand

java.lang.Object
  extended by f00f.net.irc.martyr.commands.WhoisCommand
All Implemented Interfaces:
Command, OutCommand

public class WhoisCommand
extends java.lang.Object
implements OutCommand

Implements a WHOIS command, to query details about a user.


Constructor Summary
WhoisCommand(java.lang.String target)
           
 
Method Summary
 java.lang.String getIrcIdentifier()
          Returns the string IRC uses to identify this command.
 java.lang.String render()
          Simply returns the string given in the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhoisCommand

public WhoisCommand(java.lang.String target)
Parameters:
target - the nick or mask that you wish to know about.
Method Detail

getIrcIdentifier

public 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.

Specified by:
getIrcIdentifier in interface Command
Returns:
"WHOIS"

render

public java.lang.String render()
Simply returns the string given in the constructor.

Specified by:
render in interface OutCommand
Returns:
Rendered string


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