|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Defines what a command is. Errors and replies are commands, in fact, pretty much anything the server can send to us, or anything we can send to the server is a command.
GenericCommand,
GenericError,
GenericReply| Method Summary | |
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. |
Command |
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. |
java.lang.String |
render()
Forms a string appropriate to send to the server, if required. |
void |
selfRegister(CommandRegister commandRegister)
Every command should know how to register itself (or not) with the command parsing engine. |
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. |
| Method Detail |
public State getState()
public void selfRegister(CommandRegister commandRegister)
public java.lang.String render()
public Command 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||