Class UnknownCommand

    • Constructor Detail

      • UnknownCommand

        public UnknownCommand​(String command)
    • Method Detail

      • getCommand

        public String getCommand()
      • getMessage

        public String getMessage()
      • setInputStream

        public void setInputStream​(InputStream in)
        Description copied from interface: Command
        Set the input stream that can be used by the shell to read input.
        Specified by:
        setInputStream in interface Command
        Parameters:
        in - The InputStream used by the shell to read input.
      • setOutputStream

        public void setOutputStream​(OutputStream out)
        Description copied from interface: Command
        Set the output stream that can be used by the shell to write its output.
        Specified by:
        setOutputStream in interface Command
        Parameters:
        out - The OutputStream used by the shell to write its output
      • setErrorStream

        public void setErrorStream​(OutputStream err)
        Description copied from interface: Command
        Set the error stream that can be used by the shell to write its errors.
        Specified by:
        setErrorStream in interface Command
        Parameters:
        err - The OutputStream used by the shell to write its errors
      • setExitCallback

        public void setExitCallback​(ExitCallback callback)
        Description copied from interface: Command
        Set the callback that the shell has to call when it is closed.
        Specified by:
        setExitCallback in interface Command
        Parameters:
        callback - The ExitCallback to call when shell is closed
      • run

        public void run()
        Specified by:
        run in interface Runnable
      • destroy

        public void destroy​(ChannelSession channel)
        Description copied from interface: CommandLifecycle
        This method is called by the SSH server to destroy the command because the client has disconnected somehow.
        Specified by:
        destroy in interface CommandLifecycle
        Parameters:
        channel - The ChannelSession through which the command has been received
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object