Package org.apache.sshd.server.shell
Class ProcessShellFactory
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.server.shell.ProcessShellFactory
- All Implemented Interfaces:
ShellFactory
- Direct Known Subclasses:
InteractiveProcessShellFactory
- Author:
- Apache MINA SSHD Project
-
Field Summary
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
Constructor Summary
ConstructorDescriptionProcessShellFactory
(String command, String... elements) ProcessShellFactory
(String command, List<String> elements) -
Method Summary
Modifier and TypeMethodDescriptionprotected InvertedShell
createInvertedShell
(ChannelSession channel) createShell
(ChannelSession channel) resolveEffectiveCommand
(ChannelSession channel, String rawCommand, List<String> parsedElements) void
setCommand
(String command, String... elements) void
setCommand
(String command, List<String> elements)
-
Constructor Details
-
ProcessShellFactory
public ProcessShellFactory() -
ProcessShellFactory
-
ProcessShellFactory
-
-
Method Details
-
getCommand
- Returns:
- The original unparsed raw command
-
getElements
- Returns:
- The parsed command elements
-
setCommand
-
setCommand
-
createShell
- Specified by:
createShell
in interfaceShellFactory
- Parameters:
channel
- TheChannelSession
through which the command has been received- Returns:
- The
Command
representing the shell to be executed
-
createInvertedShell
-
resolveEffectiveCommand
-