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
-
Field Summary
FieldsFields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log -
Constructor Summary
ConstructorsConstructorDescriptionProcessShellFactory(String command, String... elements) ProcessShellFactory(String command, List<String> elements) -
Method Summary
Modifier and TypeMethodDescriptionprotected InvertedShellcreateInvertedShell(ChannelSession channel) createShell(ChannelSession channel) resolveEffectiveCommand(ChannelSession channel, String rawCommand, List<String> parsedElements) voidsetCommand(String command, String... elements) voidsetCommand(String command, List<String> elements)
-
Field Details
-
command
-
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:
createShellin interfaceShellFactory- Parameters:
channel- TheChannelSessionthrough which the command has been received- Returns:
- The
Commandrepresenting the shell to be executed
-
createInvertedShell
-
resolveEffectiveCommand
-