public class ServletFilterModuleDescriptor extends BaseServletModuleDescriptor<javax.servlet.Filter> implements StateAware
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.| Modifier and Type | Field and Description |
|---|---|
static Comparator<ServletFilterModuleDescriptor> |
byWeight |
logkey, moduleClass, moduleClassName, moduleFactory, name, plugin, resources, singleton| Constructor and Description |
|---|
ServletFilterModuleDescriptor(ModuleFactory moduleFactory,
ServletModuleManager servletModuleManager)
Creates a descriptor that uses a module class factory to create instances.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disabled()
Disables the module descriptor.
|
void |
enabled()
Enables the descriptor by loading the module class.
|
Set<FilterDispatcherCondition> |
getDispatcherConditions()
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. |
FilterLocation |
getLocation() |
javax.servlet.Filter |
getModule()
The particular module object created by this plugin.
|
int |
getWeight() |
void |
init(Plugin plugin,
org.dom4j.Element element)
Initialise a module given it's parent plugin and the XML element
representing the module.
|
protected void |
provideValidationRules(ValidationPattern pattern)
Provides validation rules for the pattern
|
getInitParams, getPathsassertModuleClassImplements, checkPermissions, destroy, destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, hashCode, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, satisfiesMinJavaVersion, setPlugin, toStringpublic static final Comparator<ServletFilterModuleDescriptor> byWeight
public ServletFilterModuleDescriptor(ModuleFactory moduleFactory, ServletModuleManager servletModuleManager)
moduleFactory - The module factoryservletModuleManager - The module managerpublic void init(Plugin plugin, org.dom4j.Element element) throws PluginParseException
ModuleDescriptor
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
AbstractModuleDescriptor.enabled()
method instead.
init in interface ModuleDescriptor<javax.servlet.Filter>init in class BaseServletModuleDescriptor<javax.servlet.Filter>plugin - The plugin that the module belongs to. Must not be null.element - XML element representing the module. Must not be null.PluginParseException - Can be thrown if an error occurs while
parsing the XML element.protected void provideValidationRules(ValidationPattern pattern)
AbstractModuleDescriptorprovideValidationRules in class BaseServletModuleDescriptor<javax.servlet.Filter>pattern - The validation patternpublic void enabled()
AbstractModuleDescriptorenabled in interface StateAwareenabled in class AbstractModuleDescriptor<javax.servlet.Filter>public void disabled()
AbstractModuleDescriptordisabled in interface StateAwaredisabled in class AbstractModuleDescriptor<javax.servlet.Filter>public javax.servlet.Filter getModule()
ModuleDescriptorgetModule in interface ModuleDescriptor<javax.servlet.Filter>getModule in class AbstractModuleDescriptor<javax.servlet.Filter>ModuleDescriptor.getModuleClass()public FilterLocation getLocation()
public int getWeight()
public Set<FilterDispatcherCondition> getDispatcherConditions()
REQUEST, FORWARD, INCLUDE or ERROR.Copyright © 2014 Atlassian. All rights reserved.