public class UnknownCommandFactory extends java.lang.Object implements CommandFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FACTORY_NAME |
static UnknownCommandFactory |
INSTANCE |
Constructor and Description |
---|
UnknownCommandFactory() |
Modifier and Type | Method and Description |
---|---|
Command |
createCommand(ChannelSession channel,
java.lang.String command)
Create a command with the given name.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
split
public static final java.lang.String FACTORY_NAME
public static final UnknownCommandFactory INSTANCE
public java.lang.String toString()
toString
in class java.lang.Object
public Command createCommand(ChannelSession channel, java.lang.String command)
CommandFactory
createCommand
in interface CommandFactory
channel
- The ChannelSession
through which the command has been receivedcommand
- The command that will be runnull
Command
instance