|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Defines commands that come from the server. Errors and replies are incoming commands.
GenericCommand,
GenericError,
GenericReply| Method Summary | |
java.lang.String |
getAttribute(java.lang.String key)
Returns the attribute, or null if the attribute does not exist, or is not defined. |
java.util.Iterator |
getAttributeKeys()
Returns an iterator of String objects over the attribute names for this command. |
java.lang.String |
getSourceString()
Allows a third party to receive a copy of the raw string. |
State |
getState()
Some commands, when received by the server, can only occur in one state. |
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 incoming command should know how to register itself with the command register. |
void |
setSourceString(java.lang.String str)
Gives the command a copy of the raw string from the server. |
boolean |
updateClientState(ClientState state)
Asks the command to ensure that information it knows about the state the server thinks the client is in matches what we have. |
| Methods inherited from interface f00f.net.irc.martyr.Command |
getIrcIdentifier |
| Method Detail |
public State getState()
public void selfRegister(CommandRegister commandRegister)
public InCommand parse(java.lang.String prefix,
java.lang.String identifier,
java.lang.String params)
public void setSourceString(java.lang.String str)
public java.lang.String getSourceString()
public boolean updateClientState(ClientState state)
public java.util.Iterator getAttributeKeys()
public java.lang.String getAttribute(java.lang.String key)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||