Package com.sshtools.server.vsession
Class AbstractCommand
java.lang.Object
com.sshtools.server.vsession.AbstractCommand
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
SftpCommand
,ShellCommand
-
Field Summary
FieldsFields inherited from interface com.sshtools.server.vsession.Command
STILL_ACTIVE
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractCommand
(String name, String subsystem, String usage, String description) -
Method Summary
Modifier and TypeMethodDescriptionvoid
complete
(org.jline.reader.LineReader reader, org.jline.reader.ParsedLine line, List<org.jline.reader.Candidate> candidates) int
getName()
getUsage()
boolean
boolean
isHidden()
protected void
setBuiltIn
(boolean builtIn) protected void
setDescription
(String description) protected void
protected void
setSignature
(String signature) protected void
setSubsystem
(String subsystem)
-
Field Details
-
exitCode
protected int exitCode
-
-
Constructor Details
-
AbstractCommand
-
-
Method Details
-
isHidden
public boolean isHidden() -
getName
-
getDescription
- Specified by:
getDescription
in interfaceCommand
-
getSubsystem
- Specified by:
getSubsystem
in interfaceCommand
-
getCommandName
- Specified by:
getCommandName
in interfaceCommand
-
getUsage
-
isBuiltIn
public boolean isBuiltIn() -
setBuiltIn
protected void setBuiltIn(boolean builtIn) -
setName
-
setSubsystem
-
setSignature
-
setDescription
-
getExitCode
public int getExitCode()- Specified by:
getExitCode
in interfaceCommand
-
complete
public void complete(org.jline.reader.LineReader reader, org.jline.reader.ParsedLine line, List<org.jline.reader.Candidate> candidates)
-