com.davesag.smpp.command
Class Command.Factory
java.lang.Object
com.davesag.smpp.command.Command.Factory
- Enclosing class:
- Command
- public static class Command.Factory
- extends Object
constructs the right command given a command string.
|
Method Summary |
static Command |
getCommand(ie.omk.smpp.Address incomingId,
ie.omk.smpp.Address senderId,
String commandString)
gets the appropriate command given a supplied command string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static Log log
factory
protected static CommandFactory factory
Command.Factory
public Command.Factory()
getCommand
public static Command getCommand(ie.omk.smpp.Address incomingId,
ie.omk.smpp.Address senderId,
String commandString)
throws CommandFormatException
- gets the appropriate command given a supplied command string.
- Parameters:
senderId - the sender's address.commandString - The string sent by the user.
- Returns:
- A command.
- Throws:
CommandFormatException
SMPP Commander API version 20 Jan 2005. (C) 2004 Dave Sag.