java.lang.Object | |||
↳ | com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T> | ||
↳ | com.atlassian.plugin.servlet.descriptors.BaseServletModuleDescriptor<T> | ||
↳ | com.atlassian.plugin.servlet.descriptors.ServletFilterModuleDescriptor |
A module descriptor that allows plugin developers to define servlet filters. Developers can define what urls the filter should be applied to by defining one or more <url-pattern> elements and they can decide where in the filter stack a plugin filter should go by defining the "location" and "weight" attributes.
The location attribute can have one of four values:The default for the location attribute is "before-dispatch".
The weight attribute can have any integer value. Filters with lower values of the weight attribute will come before those with higher values within the same location.Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
byWeight |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a descriptor that uses a module class factory to create instances.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Disables the module descriptor.
| |||||||||||
Enables the descriptor by loading the module class.
| |||||||||||
Returns a set of dispatcher conditions that have been set for this filter, these conditions
will be one of the following:
REQUEST, FORWARD, INCLUDE or ERROR . | |||||||||||
The particular module object created by this plugin.
| |||||||||||
Initialise a module given it's parent plugin and the XML element
representing the module.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Provides validation rules for the pattern
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a descriptor that uses a module class factory to create instances.
moduleFactory | The module factory |
---|---|
servletModuleManager | The module manager |
Disables the module descriptor. Classes overriding this method MUST call super.disabled() after their own disabling code.
Enables the descriptor by loading the module class. Classes overriding this method MUST call super.enabled() before their own enabling code.
Returns a set of dispatcher conditions that have been set for this filter, these conditions
will be one of the following: REQUEST, FORWARD, INCLUDE or ERROR
.
The particular module object created by this plugin.
Initialise a module given it's parent plugin and the XML element representing the module.
Since atlassian-plugins v2.2, you can no longer load classes from the
plugin in this method, because the OSGi bundle that they will live in is
not built yet. Load classes in the
enabled()
method instead.
plugin | The plugin that the module belongs to. Must not be null. |
---|---|
element | XML element representing the module. Must not be null. |
PluginParseException |
---|
Provides validation rules for the pattern
pattern | The validation pattern |
---|