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
public class ProcessShellFactory extends AbstractLoggingBean implements ShellFactory
- Author:
- Apache MINA SSHD Project
-
-
Field Summary
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Constructor Description ProcessShellFactory()ProcessShellFactory(String command, String... elements)ProcessShellFactory(String command, List<String> elements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InvertedShellcreateInvertedShell(ChannelSession channel)CommandcreateShell(ChannelSession channel)StringgetCommand()List<String>getElements()protected List<String>resolveEffectiveCommand(ChannelSession channel, String rawCommand, List<String> parsedElements)voidsetCommand(String command, String... elements)voidsetCommand(String command, List<String> elements)
-
-
-
Method Detail
-
getCommand
public String getCommand()
- Returns:
- The original unparsed raw command
-
createShell
public Command createShell(ChannelSession channel)
- Specified by:
createShellin interfaceShellFactory- Parameters:
channel- TheChannelSessionthrough which the command has been received- Returns:
- The
Commandrepresenting the shell to be executed
-
createInvertedShell
protected InvertedShell createInvertedShell(ChannelSession channel)
-
-