Class AbstractCommand

java.lang.Object
com.sshtools.server.vsession.AbstractCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
SftpCommand, ShellCommand

public abstract class AbstractCommand extends Object implements Command
  • Field Details

    • exitCode

      protected int exitCode
  • Constructor Details

  • Method Details

    • isHidden

      public boolean isHidden()
      Specified by:
      isHidden in interface Command
    • getName

      public String getName()
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface Command
    • getSubsystem

      public String getSubsystem()
      Specified by:
      getSubsystem in interface Command
    • getCommandName

      public String getCommandName()
      Specified by:
      getCommandName in interface Command
    • getUsage

      public String getUsage()
      Specified by:
      getUsage in interface Command
    • isBuiltIn

      public boolean isBuiltIn()
      Specified by:
      isBuiltIn in interface Command
    • setBuiltIn

      protected void setBuiltIn(boolean builtIn)
    • setName

      protected void setName(String name)
    • setSubsystem

      protected void setSubsystem(String subsystem)
    • setSignature

      protected void setSignature(String signature)
    • setDescription

      protected void setDescription(String description)
    • getExitCode

      public int getExitCode()
      Specified by:
      getExitCode in interface Command
    • complete

      public void complete(org.jline.reader.LineReader reader, org.jline.reader.ParsedLine line, List<org.jline.reader.Candidate> candidates)
      Specified by:
      complete in interface Command