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() |
void |
enabled() |
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() |
int |
getWeight() |
void |
init(Plugin plugin,
org.dom4j.Element element) |
protected void |
provideValidationRules(ValidationPattern 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, isBroken, isEnabled, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, satisfiesMinJavaVersion, setBroken, 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
init in interface ModuleDescriptor<javax.servlet.Filter>init in class BaseServletModuleDescriptor<javax.servlet.Filter>PluginParseExceptionprotected void provideValidationRules(ValidationPattern pattern)
provideValidationRules in class BaseServletModuleDescriptor<javax.servlet.Filter>public void enabled()
enabled in interface StateAwareenabled in class AbstractModuleDescriptor<javax.servlet.Filter>public void disabled()
disabled in interface StateAwaredisabled in class AbstractModuleDescriptor<javax.servlet.Filter>public javax.servlet.Filter getModule()
getModule in interface ModuleDescriptor<javax.servlet.Filter>getModule in class AbstractModuleDescriptor<javax.servlet.Filter>public FilterLocation getLocation()
public int getWeight()
public Set<FilterDispatcherCondition> getDispatcherConditions()
REQUEST, FORWARD, INCLUDE or ERROR.Copyright © 2015 Atlassian. All rights reserved.