public abstract class AbstractDelegatingCommandFactory extends AbstractLoggingBean implements CommandFactory
CommandFactory wrapper that delegates calls to a proxylog| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDelegatingCommandFactory(String name) |
| Modifier and Type | Method and Description |
|---|---|
Command |
createCommand(ChannelSession channel,
String command)
Create a command with the given name.
|
protected Command |
createUnsupportedCommand(ChannelSession channel,
String command) |
protected abstract Command |
executeSupportedCommand(ChannelSession channel,
String command) |
CommandFactory |
getDelegateCommandFactory() |
abstract boolean |
isSupportedCommand(ChannelSession channel,
String command) |
void |
setDelegateCommandFactory(CommandFactory factory) |
String |
toString() |
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsplitprotected AbstractDelegatingCommandFactory(String name)
public CommandFactory getDelegateCommandFactory()
public void setDelegateCommandFactory(CommandFactory factory)
public Command createCommand(ChannelSession channel, String command) throws IOException
CommandFactorycreateCommand in interface CommandFactorychannel - The ChannelSession through which the command has been receivedcommand - The command that will be runnull Command instanceIOException - if failed to create the instancepublic abstract boolean isSupportedCommand(ChannelSession channel, String command)
channel - The ChannelSession through which the command was receivedcommand - The command about to be executedtrue if this command is supported by the command factory, false if it will be
passed on to the delegate factoryprotected abstract Command executeSupportedCommand(ChannelSession channel, String command)
protected Command createUnsupportedCommand(ChannelSession channel, String command)
Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.