Package org.jenkinsci.main.modules.sshd
Class SshCommandFactory
java.lang.Object
org.jenkinsci.main.modules.sshd.SshCommandFactory
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
CLICommandAdapter
Extension point for adding commands invokable via SSH.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Represents a command line.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionList<SshCommandFactory>
all()
abstract org.apache.sshd.server.command.Command
create
(SshCommandFactory.CommandLine commandLine) If this factory understands the specified command, return a non-nullCommand
and that command will be used to handle the request.
-
Constructor Details
-
SshCommandFactory
public SshCommandFactory()
-
-
Method Details
-
create
public abstract org.apache.sshd.server.command.Command create(SshCommandFactory.CommandLine commandLine) If this factory understands the specified command, return a non-nullCommand
and that command will be used to handle the request. Otherwise return null to let otherSshCommandFactory
s handle it.- Parameters:
commandLine
- Represents the command line the client wants to invoke.
-
all
-