public interface FilterRegistration extends Registration
Modifier and Type | Interface and Description |
---|---|
static interface |
FilterRegistration.Dynamic |
Modifier and Type | Method and Description |
---|---|
void |
addMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes,
boolean isMatchAfter,
String... servletNames)
Add a mapping for this filter to one or more named Servlets.
|
void |
addMappingForUrlPatterns(EnumSet<DispatcherType> dispatcherTypes,
boolean isMatchAfter,
String... urlPatterns)
Add a mapping for this filter to one or more URL patterns.
|
Collection<String> |
getServletNameMappings() |
Collection<String> |
getUrlPatternMappings() |
getClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParameters
void addMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, 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 filterIllegalArgumentException
- if the list of servlet names is empty
or nullIllegalStateException
- if the associated ServletContext has
already been initialisedCollection<String> getServletNameMappings()
void addMappingForUrlPatterns(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, 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
appliedIllegalArgumentException
- if the list of URL patterns is empty or
nullIllegalStateException
- if the associated ServletContext has
already been initialisedCollection<String> getUrlPatternMappings()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.