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
public abstract class SshCommandFactory extends Object implements ExtensionPoint
Extension point for adding commands invokable via SSH.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SshCommandFactory.CommandLine
Represents a command line.-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description SshCommandFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static 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.
-
-
-
Method Detail
-
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
public static ExtensionList<SshCommandFactory> all()
-
-