Module org.jline

Class ShellFactoryImpl.ShellImpl

  • All Implemented Interfaces:
    org.apache.sshd.server.command.Command, org.apache.sshd.server.command.CommandLifecycle, org.apache.sshd.server.SessionAware
    Enclosing class:
    ShellFactoryImpl

    public class ShellFactoryImpl.ShellImpl
    extends Object
    implements org.apache.sshd.server.command.Command, org.apache.sshd.server.SessionAware
    • Constructor Detail

      • ShellImpl

        public ShellImpl()
    • Method Detail

      • setInputStream

        public void setInputStream​(InputStream in)
        Specified by:
        setInputStream in interface org.apache.sshd.server.command.Command
      • setOutputStream

        public void setOutputStream​(OutputStream out)
        Specified by:
        setOutputStream in interface org.apache.sshd.server.command.Command
      • setErrorStream

        public void setErrorStream​(OutputStream err)
        Specified by:
        setErrorStream in interface org.apache.sshd.server.command.Command
      • setExitCallback

        public void setExitCallback​(org.apache.sshd.server.ExitCallback callback)
        Specified by:
        setExitCallback in interface org.apache.sshd.server.command.Command
      • setSession

        public void setSession​(org.apache.sshd.server.session.ServerSession session)
        Specified by:
        setSession in interface org.apache.sshd.server.SessionAware
      • start

        public void start​(org.apache.sshd.server.Environment env)
                   throws IOException
        Specified by:
        start in interface org.apache.sshd.server.command.CommandLifecycle
        Throws:
        IOException
      • run

        public void run​(org.apache.sshd.server.Environment env)
                 throws Exception
        Throws:
        Exception
      • destroy

        public void destroy()
        Specified by:
        destroy in interface org.apache.sshd.server.command.CommandLifecycle