public interface FilterRegistration extends Registration
Modifier and Type | Interface and Description |
---|---|
static interface |
FilterRegistration.Dynamic |
Modifier and Type | Method and Description |
---|---|
void |
addMappingForServletNames(java.util.EnumSet<DispatcherType> dispatcherTypes,
boolean isMatchAfter,
java.lang.String... servletNames)
Add a mapping for this filter to one or more named Servlets.
|
void |
addMappingForUrlPatterns(java.util.EnumSet<DispatcherType> dispatcherTypes,
boolean isMatchAfter,
java.lang.String... urlPatterns)
Add a mapping for this filter to one or more URL patterns.
|
java.util.Collection<java.lang.String> |
getServletNameMappings() |
java.util.Collection<java.lang.String> |
getUrlPatternMappings() |
getClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParameters
void addMappingForServletNames(java.util.EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, java.lang.String... servletNames)
dispatcherTypes
- The dispatch types to which this filter should
applyisMatchAfter
- Should this filter be applied after any mappings
defined in the deployment descriptor
(true
) or before?servletNames
- Requests mapped to these servlets will be
processed by this filterjava.lang.IllegalArgumentException
- if the list of servlet names is empty
or nulljava.lang.IllegalStateException
- if the associated ServletContext has
already been initialisedjava.util.Collection<java.lang.String> getServletNameMappings()
void addMappingForUrlPatterns(java.util.EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, java.lang.String... urlPatterns)
dispatcherTypes
- The dispatch types to which this filter should
applyisMatchAfter
- Should this filter be applied after any mappings
defined in the deployment descriptor
(true
) or before?urlPatterns
- The URL patterns to which this filter should be
appliedjava.lang.IllegalArgumentException
- if the list of URL patterns is empty or
nulljava.lang.IllegalStateException
- if the associated ServletContext has
already been initialisedjava.util.Collection<java.lang.String> getUrlPatternMappings()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.