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
  • 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-null Command and that command will be used to handle the request. Otherwise return null to let other SshCommandFactorys handle it.
      Parameters:
      commandLine - Represents the command line the client wants to invoke.
    • all

      public static ExtensionList<SshCommandFactory> all()