Class CommandExecutionHelper

  • All Implemented Interfaces:
    java.lang.Runnable, org.apache.sshd.common.session.SessionContextHolder, org.apache.sshd.common.session.SessionHolder<org.apache.sshd.server.session.ServerSession>, org.apache.sshd.common.util.threads.ExecutorServiceCarrier, 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, org.apache.sshd.server.session.ServerSessionAware, org.apache.sshd.server.session.ServerSessionHolder
    Direct Known Subclasses:
    EchoShell

    public abstract class CommandExecutionHelper
    extends org.apache.sshd.server.command.AbstractCommandSupport
    • Field Summary

      • Fields inherited from class org.apache.sshd.server.command.AbstractCommandSupport

        cbCalled, cmdRunner, executorService
      • Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean

        log
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract boolean handleCommandLine​(java.lang.String command)  
      void run()  
      • Methods inherited from class org.apache.sshd.server.command.AbstractCommandSupport

        destroy, getCommand, getEnvironment, getErrorStream, getExecutorService, getExitCallback, getInputStream, getOutputStream, getServerSession, getSession, getStartedCommandFuture, onExit, onExit, setErrorStream, setExitCallback, setInputStream, setOutputStream, setSession, start, toString
      • Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean

        debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.apache.sshd.common.session.SessionHolder

        getSessionContext
    • Constructor Detail

      • CommandExecutionHelper

        protected CommandExecutionHelper()
      • CommandExecutionHelper

        protected CommandExecutionHelper​(java.lang.String command)
    • Method Detail

      • run

        public void run()
      • handleCommandLine

        protected abstract boolean handleCommandLine​(java.lang.String command)
                                              throws java.lang.Exception
        Parameters:
        command - The command line
        Returns:
        true if continue accepting command
        Throws:
        java.lang.Exception - If failed to handle the command line