- All Superinterfaces:
Registration
- All Known Subinterfaces:
FilterEnvironment
,FilterRegistration.Dynamic
- All Known Implementing Classes:
DefaultFilterEnvironment
The FilterRegistration API.
- Author:
- Manfred Riem ([email protected])
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The FilterRegistration.Dynamic API. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String... servletNames)
Add a mapping for servlet names.void
addMappingForUrlPatterns(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String... urlPatterns)
Add a mapping for URL patterns.Returns the servlet name mappings.Returns the URL pattern mappings.Methods inherited from interface jakarta.servlet.Registration
getClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParameters
-
Method Details
-
addMappingForServletNames
void addMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String... servletNames)Add a mapping for servlet names.- Parameters:
dispatcherTypes
- the dispatcher types.isMatchAfter
- true if it should be matched after declared filters.servletNames
- the servlet names.
-
addMappingForUrlPatterns
void addMappingForUrlPatterns(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String... urlPatterns)Add a mapping for URL patterns.- Parameters:
dispatcherTypes
- the dispatcher types.isMatchAfter
- true if it should be matched after declared filters.urlPatterns
- the URL patterns.
-
getServletNameMappings
Collection<String> getServletNameMappings()Returns the servlet name mappings.- Returns:
- the servlet name mappings
-
getUrlPatternMappings
Collection<String> getUrlPatternMappings()Returns the URL pattern mappings.- Returns:
- the URL pattern mappings
-