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 java.lang.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(java.lang.String[] command)
           
ProcessShellFactory(java.lang.String[] command, java.util.EnumSet<ProcessShellFactory.TtyOptions> ttyOptions)
           
 
Method Summary
 Command create()
          Create a new instance
 java.lang.String[] getCommand()
           
 void setCommand(java.lang.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(java.lang.String[] command)

ProcessShellFactory

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

getCommand

public java.lang.String[] getCommand()

setCommand

public void setCommand(java.lang.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-2010 The Apache Software Foundation. All Rights Reserved.