Top Description Fields Constructors Methods
org.apache.sshd.server.shell

public Class ProcessShellFactory

extends AbstractLoggingBean
implements ShellFactory
Class Inheritance
All Implemented Interfaces
org.apache.sshd.server.shell.ShellFactory
Known Direct Subclasses
org.apache.sshd.server.shell.InteractiveProcessShellFactory
Imports
java.util.Arrays, .Collections, .List, org.apache.sshd.common.Factory, org.apache.sshd.common.util.GenericUtils, .OsUtils, .ValidateUtils, org.apache.sshd.common.util.logging.AbstractLoggingBean, org.apache.sshd.server.channel.ChannelSession, org.apache.sshd.server.command.Command

A Factory of Command that will create a new process and bridge the streams.
Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
private String
private List<String>
Inherited from org.apache.sshd.common.util.logging.AbstractLoggingBean:
log

Constructor Summary

AccessConstructor and Description
public
public
ProcessShellFactory(String command, String... elements)

public
ProcessShellFactory(String command, List<String> elements)

Method Summary

Modifier and TypeMethod and Description
protected InvertedShell
public Command
createShell(ChannelSession
The ChannelSession through which the command has been received
channel
)

Implements org.apache.sshd.server.shell.ShellFactory.createShell.

public String

Returns:

The original unparsed raw command
getCommand
()

public List<String>

Returns:

The parsed command elements
getElements
()

protected List<String>
resolveEffectiveCommand(ChannelSession channel, String rawCommand, List<String> parsedElements)

public void
setCommand(String command, String... elements)

public void
setCommand(String command, List<String> elements)

Inherited from org.apache.sshd.common.util.logging.AbstractLoggingBean:
debugdebugdebugdebugdebugerrorerrorerrorerrorerrorgetSimplifiedLoggerinfoinfowarnwarnwarnwarnwarnwarnwarnwarn

Field Detail

commandback to summary
private String command
elementsback to summary
private List<String> elements

Constructor Detail

ProcessShellFactoryback to summary
public ProcessShellFactory()
ProcessShellFactoryback to summary
public ProcessShellFactory(String command, String... elements)
ProcessShellFactoryback to summary
public ProcessShellFactory(String command, List<String> elements)

Method Detail

createInvertedShellback to summary
protected InvertedShell createInvertedShell(ChannelSession channel)
createShellback to summary
public Command createShell(ChannelSession channel)

Implements org.apache.sshd.server.shell.ShellFactory.createShell.

Parameters
channel:ChannelSession

Doc from org.apache.sshd.server.shell.ShellFactory.createShell.

The ChannelSession through which the command has been received

Returns:Command

Doc from org.apache.sshd.server.shell.ShellFactory.createShell.

The Command representing the shell to be executed

Annotations
@Override
getCommandback to summary
public String getCommand()
Returns:String

The original unparsed raw command

getElementsback to summary
public List<String> getElements()
Returns:List<String>

The parsed command elements

resolveEffectiveCommandback to summary
protected List<String> resolveEffectiveCommand(ChannelSession channel, String rawCommand, List<String> parsedElements)
setCommandback to summary
public void setCommand(String command, String... elements)
setCommandback to summary
public void setCommand(String command, List<String> elements)