Package org.jline.builtins.ssh
Class ShellFactoryImpl.ShellImpl
- java.lang.Object
-
- org.jline.builtins.ssh.ShellFactoryImpl.ShellImpl
-
- All Implemented Interfaces:
org.apache.sshd.server.command.Command,org.apache.sshd.server.command.CommandDirectErrorStreamAware,org.apache.sshd.server.command.CommandDirectInputStreamAware,org.apache.sshd.server.command.CommandDirectOutputStreamAware,org.apache.sshd.server.command.CommandDirectStreamsAware,org.apache.sshd.server.command.CommandLifecycle
- Enclosing class:
- ShellFactoryImpl
public class ShellFactoryImpl.ShellImpl extends java.lang.Object implements org.apache.sshd.server.command.Command
-
-
Constructor Summary
Constructors Constructor Description ShellImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy(org.apache.sshd.server.channel.ChannelSession session)voidrun(org.apache.sshd.server.channel.ChannelSession session, org.apache.sshd.server.Environment env)voidsetErrorStream(java.io.OutputStream err)voidsetExitCallback(org.apache.sshd.server.ExitCallback callback)voidsetInputStream(java.io.InputStream in)voidsetOutputStream(java.io.OutputStream out)voidstart(org.apache.sshd.server.channel.ChannelSession session, org.apache.sshd.server.Environment env)
-
-
-
Method Detail
-
setInputStream
public void setInputStream(java.io.InputStream in)
- Specified by:
setInputStreamin interfaceorg.apache.sshd.server.command.CommandDirectInputStreamAware
-
setOutputStream
public void setOutputStream(java.io.OutputStream out)
- Specified by:
setOutputStreamin interfaceorg.apache.sshd.server.command.CommandDirectOutputStreamAware
-
setErrorStream
public void setErrorStream(java.io.OutputStream err)
- Specified by:
setErrorStreamin interfaceorg.apache.sshd.server.command.CommandDirectErrorStreamAware
-
setExitCallback
public void setExitCallback(org.apache.sshd.server.ExitCallback callback)
- Specified by:
setExitCallbackin interfaceorg.apache.sshd.server.command.Command
-
start
public void start(org.apache.sshd.server.channel.ChannelSession session, org.apache.sshd.server.Environment env) throws java.io.IOException- Specified by:
startin interfaceorg.apache.sshd.server.command.CommandLifecycle- Throws:
java.io.IOException
-
run
public void run(org.apache.sshd.server.channel.ChannelSession session, org.apache.sshd.server.Environment env) throws java.lang.Exception- Throws:
java.lang.Exception
-
destroy
public void destroy(org.apache.sshd.server.channel.ChannelSession session)
- Specified by:
destroyin interfaceorg.apache.sshd.server.command.CommandLifecycle
-
-