public class HttpScmRequestHandlerModuleDescriptor extends AbstractScmRequestHandlerModuleDescriptor<HttpScmRequestHandler>
HttpScmRequestHandler
implementations.
Usage:
<http-request-handler
key="gitHttpScmRequestHandler"
class="com.example.stash.internal.scm.git.protocol.http.DefaultGitHttpScmRequestHandler"
scm="git"
weight="100">
<url-formatter class="com.atlassian.stash.internal.scm.git.protocol.http.GitHttpUrlFormatter"/>
</http-request-handler>
The key
and class
attributes are required. The scm
and weight
attributes,
and the nested url-formatter
, are optional.
scm
: Indicates the HttpScmRequestHandler
being registered adds HTTP 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 HTTP support for an SCMurl-formatter
: Allows registering an ScmUrlFormatter
which can be used to override
the default HTTP URL to apply SCM-specific decorators
url-formatter
element is included, the class
attribute is requiredweight
: Defines the order in which HttpScmRequestHandler
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 |
---|
HttpScmRequestHandlerModuleDescriptor(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, validate
public static final String XML_ELEMENT_NAME
Copyright © 2024 Atlassian. All rights reserved.