org.jenkinsci.main.modules.sshd
Class SshCommandFactory

java.lang.Object
  extended by org.jenkinsci.main.modules.sshd.SshCommandFactory
All Implemented Interfaces:
hudson.ExtensionPoint
Direct Known Subclasses:
CLICommandAdapter

public abstract class SshCommandFactory
extends Object
implements hudson.ExtensionPoint

Extension point for adding commands invokable via SSH.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class SshCommandFactory.CommandLine
          Represents a command line.
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
SshCommandFactory()
           
 
Method Summary
static hudson.ExtensionList<SshCommandFactory> all()
           
abstract  org.apache.sshd.server.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SshCommandFactory

public SshCommandFactory()
Method Detail

create

public abstract org.apache.sshd.server.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 hudson.ExtensionList<SshCommandFactory> all()


Copyright © 2004-2012. All Rights Reserved.