com.davesag.smpp.command
Class Command.Factory

java.lang.Object
  extended bycom.davesag.smpp.command.Command.Factory
Enclosing class:
Command

public static class Command.Factory
extends Object

constructs the right command given a command string.


Field Summary
protected static CommandFactory factory
           
protected static Log log
           
 
Constructor Summary
Command.Factory()
           
 
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
 

Field Detail

log

protected static Log log

factory

protected static CommandFactory factory
Constructor Detail

Command.Factory

public Command.Factory()
Method Detail

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.