f00f.net.irc.martyr.commands
Class PongCommand
java.lang.Object
f00f.net.irc.martyr.commands.AbstractInCommand
f00f.net.irc.martyr.commands.AbstractCommand
f00f.net.irc.martyr.commands.PingCommand
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().
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PongCommand
public PongCommand(java.lang.String dest)
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 commandidentifier
- ID of the commandparams
- 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.