Filter registered with the WebappContext.
| Modifier and Type | Field and Description |
|---|---|
| protected Filter | |
| protected Class | |
| protected boolean |
| Access | Constructor and Description |
|---|---|
| protected | FilterRegistration(final WebappContext
the owning ctx, final String WebappContext.the name of the Filter. name, final String the fully qualified class name of the filterClassName)Filter implementation.Creates a new FilterRegistration associated with the specified |
| protected | FilterRegistration(final WebappContext
the owning ctx, final String WebappContext.name the name of the Filter. name, final Class<? extends Filter> the class of the filter)Filter implementationCreates a new FilterRegistration associated with the specified |
| protected | FilterRegistration(final WebappContext
the owning ctx, final String WebappContext.name the name of the Filter. name, final Filter the filter)Filter instance.Creates a new FilterRegistration associated with the specified |
| Modifier and Type | Method and Description |
|---|---|
| public void | addMappingForServletNames(EnumSet<DispatcherType>
the dispatcher types of the filter mapping, or null if the default
DispatcherType.REQUEST is to be used dispatcherTypes, String... the servlet names of the filter mapping servletNames)Adds a filter mapping with the given servlet names and dispatcher types for the Filter represented by this FilterRegistration. |
| public void | addMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String... servletNames)
Implements jakarta. Adds a filter mapping with the given servlet names and dispatcher types for the Filter represented by this FilterRegistration. |
| public void | addMappingForUrlPatterns(EnumSet<DispatcherType>
the dispatcher types of the filter mapping, or null if the default
DispatcherType.REQUEST is to be used dispatcherTypes, String... the url patterns of the filter mapping urlPatterns)Adds a filter mapping with the given url patterns and dispatcher types for the Filter represented by this FilterRegistration. |
| public void | addMappingForUrlPatterns(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String... urlPatterns)
Implements jakarta. Adds a filter mapping with the given url patterns and dispatcher types for the Filter represented by this FilterRegistration. |
| public Collection | Returns: a (possibly empty)Collection of the currently available servlet name mappings of the Filter
represented by this FilterRegistrationImplements jakarta. Gets the currently available servlet name mappings of the Filter represented by this |
| public Collection | Returns: a (possibly empty)Collection of the currently available URL pattern mappings of the Filter
represented by this FilterRegistrationImplements jakarta. Gets the currently available URL pattern mappings of the Filter represented by this |
| public void | setAsyncSupported(boolean isAsyncSupported)
Implements jakarta. Configures the Servlet or Filter represented by this dynamic Registration as supporting asynchronous operations or not. |
| filter | back to summary |
|---|---|
| protected Filter filter | |
| filterClass | back to summary |
|---|---|
| protected Class<? extends Filter> filterClass | |
| isAsyncSupported | back to summary |
|---|---|
| protected boolean isAsyncSupported | |
| FilterRegistration | back to summary |
|---|---|
| protected FilterRegistration(final WebappContext ctx, final String name, final String filterClassName) Creates a new FilterRegistration associated with the specified
| |
| FilterRegistration | back to summary |
|---|---|
| protected FilterRegistration(final WebappContext ctx, final String name, final Class<? extends Filter> filter) Creates a new FilterRegistration associated with the specified
| |
| FilterRegistration | back to summary |
|---|---|
| protected FilterRegistration(final WebappContext ctx, final String name, final Filter filter) Creates a new FilterRegistration associated with the specified
| |
| addMappingForServletNames | back to summary |
|---|---|
| public void addMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes, String... servletNames) Adds a filter mapping with the given servlet names and dispatcher types for the Filter represented by this FilterRegistration. Filter mappings are matched in the order in which they were added. If this method is called multiple times, each successive call adds to the effects of the former.
| |
| addMappingForServletNames | back to summary |
|---|---|
| public void addMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String... servletNames) Implements jakarta. Doc from jakarta. Adds a filter mapping with the given servlet names and dispatcher types for the Filter represented by this FilterRegistration. Filter mappings are matched in the order in which they were added. Depending on the value of the isMatchAfter parameter, the given filter mapping will be considered after or before any declared filter mappings of the ServletContext from which this FilterRegistration was obtained. If this method is called multiple times, each successive call adds to the effects of the former.
| |
| addMappingForUrlPatterns | back to summary |
|---|---|
| public void addMappingForUrlPatterns(EnumSet<DispatcherType> dispatcherTypes, String... urlPatterns) Adds a filter mapping with the given url patterns and dispatcher types for the Filter represented by this FilterRegistration. Filter mappings are matched in the order in which they were added. If this method is called multiple times, each successive call adds to the effects of the former.
| |
| addMappingForUrlPatterns | back to summary |
|---|---|
| public void addMappingForUrlPatterns(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String... urlPatterns) Implements jakarta. Doc from jakarta. Adds a filter mapping with the given url patterns and dispatcher types for the Filter represented by this FilterRegistration. Filter mappings are matched in the order in which they were added. Depending on the value of the isMatchAfter parameter, the given filter mapping will be considered after or before any declared filter mappings of the ServletContext from which this FilterRegistration was obtained. If this method is called multiple times, each successive call adds to the effects of the former.
| |
| getServletNameMappings | back to summary |
|---|---|
| public Collection Implements jakarta. Gets the currently available servlet name mappings of the Filter represented by this
If permitted, any changes to the returned
| |
| getUrlPatternMappings | back to summary |
|---|---|
| public Collection Implements jakarta. Gets the currently available URL pattern mappings of the Filter represented by this
If permitted, any changes to the returned
| |
| setAsyncSupported | back to summary |
|---|---|
| public void setAsyncSupported(boolean isAsyncSupported) Implements jakarta. Doc from jakarta. Configures the Servlet or Filter represented by this dynamic Registration as supporting asynchronous operations or not. By default, servlet and filters do not support asynchronous operations. A call to this method overrides any previous setting.
| |