public interface FilterRegistration extends Registration
Modifier and Type | Interface and Description |
---|---|
static interface |
FilterRegistration.Dynamic
Dynamic registration support.
|
Modifier and Type | Method and Description |
---|---|
void |
addMappingForServletNames(java.util.EnumSet<DispatcherType> dispatcherTypes,
boolean isMatchAfter,
java.lang.String... servletNames)
Add a filter mapping with the given servlet names and dispatcher
types.
|
void |
addMappingForUrlPatterns(java.util.EnumSet<DispatcherType> dispatcherTypes,
boolean isMatchAfter,
java.lang.String... urlPatterns)
Add a filter mapping with the given url patterns and dispatcher
types.
|
java.util.Collection<java.lang.String> |
getServletNameMappings()
Returns the servlet name mappings of the associated filter.
|
java.util.Collection |
getUrlPatternMappings()
Returns the url pattern mappings of the associated filter.
|
getClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParameters
void addMappingForServletNames(java.util.EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, java.lang.String... servletNames)
dispatcherTypes
- filter mapping dispatcher types, or null to
use DispatcherType.REQUEST
isMatchAfter
- true to match this filter mapping after declared
ones in the servlet context, false to match it beforeservletNames
- the servlet names in the mappingjava.lang.IllegalArgumentException
- if servletNames is null or emptyjava.lang.IllegalStateException
- if the context is already initializedjava.util.Collection<java.lang.String> getServletNameMappings()
void addMappingForUrlPatterns(java.util.EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, java.lang.String... urlPatterns)
dispatcherTypes
- filter mapping dispatcher types, or null to
use DispatcherType.REQUEST
isMatchAfter
- true to match this filter mapping after declared
ones in the servlet context, false to match it beforeurlPatterns
- the url patterns in the mappingjava.lang.IllegalArgumentException
- if urlPatterns is null or emptyjava.lang.IllegalStateException
- if the context is already initializedjava.util.Collection getUrlPatternMappings()