public class SshScmRequestHandlerModuleDescriptor extends AbstractScmRequestHandlerModuleDescriptor<SshScmRequestHandler>
SshScmRequestHandler
implementations.
Usage:
<ssh-request-handler
key="gitSshScmRequestHandler"
class="com.example.stash.internal.scm.git.protocol.ssh.DefaultGitSshScmRequestHandler"
scm="git"
weight="100">
<url-formatter class="com.atlassian.stash.internal.scm.git.protocol.ssh.GitSshUrlFormatter"/>
</ssh-request-handler>
The key
and class
attributes are required. The scm
and weight
attributes,
and the nested url-formatter
, are optional.
scm
: Indicates the SshScmRequestHandler
being registered adds SSH support
for the specified SCM. This value should match the ID
of
the associated SCM.
handlers
means it's possible to add handlers
which intercept other handlers, but do not, of themselves, add SSH support for an SCMurl-formatter
: Allows registering an ScmUrlFormatter
which can be used to override
the default SSH URL to apply SCM-specific decorators
url-formatter
element is included, the class
attribute is requiredweight
: Defines the order in which SshScmRequestHandler
implementations will be
queried. Lower weights are queried earlier and the default weight is 100. The first implementation
that supports a given command will be usedModifier and Type | Field and Description |
---|---|
static String |
XML_ELEMENT_NAME |
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources
COMPARABLE
Constructor and Description |
---|
SshScmRequestHandlerModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory) |
getModule, getScm, getUrlFormatter, init, provideValidationRules
compareTo, getWeight
assertModuleClassImplements, checkPermissions, destroy, disabled, enabled, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, loadClass, satisfiesMinJavaVersion, setBroken, setPlugin, toString
public static final String XML_ELEMENT_NAME
Copyright © 2020 Atlassian. All rights reserved.