CommandFactory wrapper that delegates calls to a proxy
| Modifier and Type | Field and Description |
|---|---|
| private CommandFactory | |
| private final String |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Command | createCommand(ChannelSession
The channel, String ChannelSession through which the command has been receivedThe command that will be run command)Implements org. Create a command with the given name. |
| protected Command | |
| protected abstract Command | |
| public CommandFactory | |
| public abstract boolean | Returns: true if this command is supported by the command factory, false if it will be
passed on to the delegate factoryThe channel, String ChannelSession through which the command was receivedThe command about to be executed command)
|
| public void | |
| public String |
| delegate | back to summary |
|---|---|
| private CommandFactory delegate | |
| name | back to summary |
|---|---|
| private final String name | |
| AbstractDelegatingCommandFactory | back to summary |
|---|---|
| protected AbstractDelegatingCommandFactory(String name) | |
| createCommand | back to summary |
|---|---|
| public Command createCommand(ChannelSession channel, String command) throws IOException Implements org. Doc from org. Create a command with the given name. If the command is not known, a dummy command should be returned to allow the display output to be sent back to the client.
| |
| createUnsupportedCommand | back to summary |
|---|---|
| protected Command createUnsupportedCommand(ChannelSession channel, String command) | |
| executeSupportedCommand | back to summary |
|---|---|
| protected abstract Command executeSupportedCommand(ChannelSession channel, String command) | |
| getDelegateCommandFactory | back to summary |
|---|---|
| public CommandFactory getDelegateCommandFactory() | |
| isSupportedCommand | back to summary |
|---|---|
public abstract boolean isSupportedCommand(ChannelSession channel, String command)
| |
| setDelegateCommandFactory | back to summary |
|---|---|
| public void setDelegateCommandFactory(CommandFactory factory) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |