f00f.net.irc.martyr.commands
Class PongCommand

java.lang.Object
  extended by f00f.net.irc.martyr.commands.AbstractInCommand
      extended by f00f.net.irc.martyr.commands.AbstractCommand
          extended by f00f.net.irc.martyr.commands.PingCommand
              extended by f00f.net.irc.martyr.commands.PongCommand
All Implemented Interfaces:
Command, InCommand, OutCommand

public class PongCommand
extends PingCommand

Defines the PONG command. At this point, PONGs can only be sent to the server, so all we need to do is provide render().


Field Summary
 
Fields inherited from class f00f.net.irc.martyr.commands.AbstractInCommand
attributes
 
Constructor Summary
PongCommand(java.lang.String dest)
           
 
Method Summary
 java.lang.String getIrcIdentifier()
          Returns the string IRC uses to identify this command.
 java.lang.String getPongDest()
           
 InCommand parse(java.lang.String prefix, java.lang.String identifier, java.lang.String params)
          PONG shouldn't be sent to us.
 
Methods inherited from class f00f.net.irc.martyr.commands.PingCommand
getPingSource, getState, renderParams
 
Methods inherited from class f00f.net.irc.martyr.commands.AbstractCommand
render
 
Methods inherited from class f00f.net.irc.martyr.commands.AbstractInCommand
getAttribute, getAttributeKeys, getIntParameter, getParameter, getSourceString, selfRegister, setAttribute, setSourceString, updateClientState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PongCommand

public PongCommand(java.lang.String dest)
Method Detail

parse

public InCommand parse(java.lang.String prefix,
                       java.lang.String identifier,
                       java.lang.String params)
PONG shouldn't be sent to us.

Specified by:
parse in interface InCommand
Overrides:
parse in class PingCommand
Parameters:
prefix - Prefix of the command
identifier - ID of the command
params - Parameters of the command
Returns:
InCommand instance for parsed command

getIrcIdentifier

public java.lang.String getIrcIdentifier()
Description copied from class: PingCommand
Returns the string IRC uses to identify this command. Examples: NICK, PING, KILL, 332

Specified by:
getIrcIdentifier in interface Command
Overrides:
getIrcIdentifier in class PingCommand
Returns:
The IRC identifier string

getPongDest

public java.lang.String getPongDest()


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