f00f.net.irc.martyr.commands
Class RawCommand

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

public class RawCommand
extends java.lang.Object
implements OutCommand


Constructor Summary
RawCommand(java.lang.String raw)
          Tries to use the first "word" in the command as the identifier.
RawCommand(java.lang.String identifier, java.lang.String parameters)
          The rendered command will be identifier + " " + parameters.
 
Method Summary
 java.lang.String getIrcIdentifier()
          Returns the identifier, if supplied, or null.
 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

RawCommand

public RawCommand(java.lang.String raw)
Tries to use the first "word" in the command as the identifier. Using this constructor is not recommended.

Parameters:
raw - Raw command to send to server

RawCommand

public RawCommand(java.lang.String identifier,
                  java.lang.String parameters)
The rendered command will be identifier + " " + parameters. This constructure simply allows a correct response to the getIrcIdentifier method.

Parameters:
identifier - Command identifier
parameters - Parameters to pass
Method Detail

getIrcIdentifier

public java.lang.String getIrcIdentifier()
Returns the identifier, if supplied, or null.

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

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.