org.apache.sshd.server.shell
Class ProcessShellFactory

java.lang.Object
  extended by org.apache.sshd.server.shell.ProcessShellFactory
All Implemented Interfaces:
Factory<Command>

public class ProcessShellFactory
extends Object
implements Factory<Command>

A Factory of Command that will create a new process and bridge the streams.

Author:
Apache MINA SSHD Project

Nested Class Summary
 class ProcessShellFactory.ProcessShell
           
static class ProcessShellFactory.TtyOptions
           
 
Constructor Summary
ProcessShellFactory()
           
ProcessShellFactory(String[] command)
           
ProcessShellFactory(String[] command, EnumSet<ProcessShellFactory.TtyOptions> ttyOptions)
           
 
Method Summary
 Command create()
          Create a new instance
 String[] getCommand()
           
 void setCommand(String[] command)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessShellFactory

public ProcessShellFactory()

ProcessShellFactory

public ProcessShellFactory(String[] command)

ProcessShellFactory

public ProcessShellFactory(String[] command,
                           EnumSet<ProcessShellFactory.TtyOptions> ttyOptions)
Method Detail

getCommand

public String[] getCommand()

setCommand

public void setCommand(String[] command)

create

public Command create()
Description copied from interface: Factory
Create a new instance

Specified by:
create in interface Factory<Command>
Returns:


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.