public class ProcessShellFactory extends AbstractLoggingBean implements ShellFactory
log| Constructor and Description |
|---|
ProcessShellFactory() |
ProcessShellFactory(String command,
List<String> elements) |
ProcessShellFactory(String command,
String... elements) |
| Modifier and Type | Method and Description |
|---|---|
protected InvertedShell |
createInvertedShell(ChannelSession channel) |
Command |
createShell(ChannelSession channel) |
String |
getCommand() |
List<String> |
getElements() |
protected List<String> |
resolveEffectiveCommand(ChannelSession channel,
String rawCommand,
List<String> parsedElements) |
void |
setCommand(String command,
List<String> elements) |
void |
setCommand(String command,
String... elements) |
getSimplifiedLoggerpublic String getCommand()
public Command createShell(ChannelSession channel)
createShell in interface ShellFactorychannel - The ChannelSession through which the command has been
receivedCommand representing the shell to be executedprotected InvertedShell createInvertedShell(ChannelSession channel)
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.