Class ShellCommand

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

    public class ShellCommand
    extends Object
    implements org.apache.sshd.server.command.Command, org.apache.sshd.server.SessionAware
    • 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
      • destroy

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