|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object f00f.net.irc.martyr.commands.AbstractInCommand f00f.net.irc.martyr.commands.WelcomeCommand
public class WelcomeCommand
Defines the commands that a server issues to welcome us. These are identified with 001, 002... etc. These commands are only received after we register, unlike the NOTICE command.
Field Summary |
---|
Fields inherited from class f00f.net.irc.martyr.commands.AbstractInCommand |
---|
attributes |
Constructor Summary | |
---|---|
WelcomeCommand()
Factory |
|
WelcomeCommand(java.lang.String nick,
java.lang.String notice)
Used by parse to create an instance of WelcomeCommand. |
Method Summary | |
---|---|
java.lang.String |
getIrcIdentifier()
Returns the string IRC uses to identify this command. |
java.lang.String |
getNick()
|
java.lang.String |
getNotice()
|
InCommand |
parse(java.lang.String prefix,
java.lang.String identifier,
java.lang.String params)
Parses a string and produces a formed command object, if it can. |
void |
selfRegister(CommandRegister commandRegister)
Every command should know how to register itself (or not) with the command parsing engine. |
java.lang.String |
toString()
|
boolean |
updateClientState(ClientState state)
Sets the nick of the client state, if there is one included with this command. |
Methods inherited from class f00f.net.irc.martyr.commands.AbstractInCommand |
---|
getAttribute, getAttributeKeys, getIntParameter, getParameter, getSourceString, getState, setAttribute, setSourceString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WelcomeCommand()
public WelcomeCommand(java.lang.String nick, java.lang.String notice)
nick
- Nick that send the welcomenotice
- Notice that was sentMethod Detail |
---|
public InCommand parse(java.lang.String prefix, java.lang.String identifier, java.lang.String params)
parse
in interface InCommand
parse
in class AbstractInCommand
prefix
- Prefix of the commandidentifier
- ID of the commandparams
- Parameters of the command
public boolean updateClientState(ClientState state)
updateClientState
in interface InCommand
updateClientState
in class AbstractInCommand
state
- Client state to be updated
public java.lang.String getIrcIdentifier()
public void selfRegister(CommandRegister commandRegister)
AbstractInCommand
selfRegister
in interface InCommand
selfRegister
in class AbstractInCommand
commandRegister
- Command register we want to register withpublic java.lang.String getNotice()
public java.lang.String getNick()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |