| Modifier and Type | Class and Description |
|---|---|
| public static interface | FilterRegistration.
Interface through which a Filter registered via one of the addFilter methods on ServletContext may be further configured. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addMappingForServletNames(EnumSet<DispatcherType>
The dispatch types to which this filter should apply dispatcherTypes, boolean Should this filter be applied after any mappings defined in the deployment descriptor
( isMatchAfter, String... true) or before?Requests mapped to these servlets will be processed by this filter servletNames)Add a mapping for this filter to one or more named Servlets. |
| public void | addMappingForUrlPatterns(EnumSet<DispatcherType>
The dispatch types to which this filter should apply dispatcherTypes, boolean Should this filter be applied after any mappings defined in the deployment descriptor
( isMatchAfter, String... true) or before?The URL patterns to which this filter should be applied urlPatterns)Add a mapping for this filter to one or more URL patterns. |
| public Collection | Returns: a Collection of the Servlet name mappingsGets the currently available servlet name mappings of the Filter represented by this FilterRegistration. |
| public Collection | Returns: a Collection of the URL pattern mappingsGets the currently available URL pattern mappings of the Filter represented by this FilterRegistration. |
| addMappingForServletNames | back to summary |
|---|---|
| public void addMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String... servletNames) Add a mapping for this filter to one or more named Servlets.
| |
| addMappingForUrlPatterns | back to summary |
|---|---|
| public void addMappingForUrlPatterns(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String... urlPatterns) Add a mapping for this filter to one or more URL patterns.
| |
| getServletNameMappings | back to summary |
|---|---|
| public Collection Gets the currently available servlet name mappings of the Filter represented by this FilterRegistration.
| |
| getUrlPatternMappings | back to summary |
|---|---|
| public Collection Gets the currently available URL pattern mappings of the Filter represented by this FilterRegistration.
| |