|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
a command to the server.
| Nested Class Summary | |
static class |
Command.Factory
constructs the right command given a command string. |
| Method Summary | |
String |
getCommandName()
get the name of this command. |
String |
getCommandString()
get the string that formed this command. |
ie.omk.smpp.Address |
getIncomingId()
accessor for the id of the command's incoming address.some commands are charged out differently depending on the number used to send them. |
ie.omk.smpp.Address |
getSenderId()
accessor for the id of the command's sender. |
boolean |
isPerformed()
Test if this command been performed yet. |
boolean |
isValid()
is this command correctly contructed? |
Response |
perform()
performs the action associated with this command and returns a response. |
void |
setCommandString(String command)
set the original command string. |
void |
setIncomingId(ie.omk.smpp.Address incomingId)
set the id of the command's incoming address. |
void |
setSenderId(ie.omk.smpp.Address senderId)
set the id of the command's sender. |
| Method Detail |
public String getCommandString()
public void setCommandString(String command)
command - The original command string.public String getCommandName()
public void setSenderId(ie.omk.smpp.Address senderId)
senderId - The id of the person sending the command.public ie.omk.smpp.Address getSenderId()
public void setIncomingId(ie.omk.smpp.Address incomingId)
incomingId - The number the command was sent to.public ie.omk.smpp.Address getIncomingId()
public boolean isValid()
public boolean isPerformed()
public Response perform()
isPerformed() method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||