| Modifier and Type | Field and Description |
|---|---|
| private final Deployment | |
| private final FilterInfo | |
| private final ServletContextImpl |
| Access | Constructor and Description |
|---|---|
| public | FilterRegistrationImpl(final FilterInfo filterInfo, final Deployment deployment, ServletContextImpl servletContext)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addMappingForServletNames(final EnumSet<DispatcherType>
the dispatcher types of the filter mapping, or null if the default
DispatcherType.REQUEST is to be used dispatcherTypes, final boolean true if the given filter mapping should be matched after any declared filter mappings, and false
if it is supposed to be matched before any declared filter mappings of the ServletContext from which this
FilterRegistration was obtained isMatchAfter, final String... the servlet names of the filter mapping 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(final EnumSet<DispatcherType>
the dispatcher types of the filter mapping, or null if the default
DispatcherType.REQUEST is to be used dispatcherTypes, final boolean true if the given filter mapping should be matched after any declared filter mappings, and false
if it is supposed to be matched before any declared filter mappings of the ServletContext from which this
FilterRegistration was obtained isMatchAfter, final String... the url patterns of the filter mapping urlPatterns)Implements jakarta. Adds a filter mapping with the given url patterns and dispatcher types for the Filter represented by this FilterRegistration. |
| public String | getClassName()
Implements jakarta. Gets the fully qualified class name of the Servlet or Filter that is represented by this Registration. |
| public String | getInitParameter(final String
the name of the initialization parameter whose value is requested name)Implements jakarta. Gets the value of the initialization parameter with the given name that will be used to initialize the Servlet or Filter represented by this Registration object. |
| public Map | getInitParameters()
Implements jakarta. Gets an immutable (and possibly empty) Map containing the currently available initialization parameters that will be used to initialize the Servlet or Filter represented by this Registration object. |
| public String | getName()
Implements jakarta. Gets the name of the Servlet or Filter that is represented by this Registration. |
| public Collection | getServletNameMappings()
Implements jakarta. Gets the currently available servlet name mappings of the Filter represented by this |
| public Collection | getUrlPatternMappings()
Implements jakarta. Gets the currently available URL pattern mappings of the Filter represented by this |
| public void | setAsyncSupported(final boolean
true if the Servlet or Filter represented by this dynamic Registration supports asynchronous
operations, false otherwise isAsyncSupported)Implements jakarta. Configures the Servlet or Filter represented by this dynamic Registration as supporting asynchronous operations or not. |
| public boolean | setInitParameter(final String
the initialization parameter name name, final String the initialization parameter value value)Implements jakarta. Sets the initialization parameter with the given name and value on the Servlet or Filter that is represented by this Registration. |
| public Set | setInitParameters(final Map<String, String>
the initialization parameters initParameters)Implements jakarta. Sets the given initialization parameters on the Servlet or Filter that is represented by this Registration. |
| deployment | back to summary |
|---|---|
| private final Deployment deployment | |
| filterInfo | back to summary |
|---|---|
| private final FilterInfo filterInfo | |
| servletContext | back to summary |
|---|---|
| private final ServletContextImpl servletContext | |
| FilterRegistrationImpl | back to summary |
|---|---|
| public FilterRegistrationImpl(final FilterInfo filterInfo, final Deployment deployment, ServletContextImpl servletContext) | |
| addMappingForServletNames | back to summary |
|---|---|
| public void addMappingForServletNames(final EnumSet<DispatcherType> dispatcherTypes, final boolean isMatchAfter, final 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(final EnumSet<DispatcherType> dispatcherTypes, final boolean isMatchAfter, final 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.
| |
| getClassName | back to summary |
|---|---|
| public String getClassName() Implements jakarta. Doc from jakarta. Gets the fully qualified class name of the Servlet or Filter that is represented by this Registration. | |
| getInitParameter | back to summary |
|---|---|
| public String getInitParameter(final String name) Implements jakarta. Doc from jakarta. Gets the value of the initialization parameter with the given name that will be used to initialize the Servlet or Filter represented by this Registration object. | |
| getInitParameters | back to summary |
|---|---|
| public Map Implements jakarta. Doc from jakarta. Gets an immutable (and possibly empty) Map containing the currently available initialization parameters that will be used to initialize the Servlet or Filter represented by this Registration object. | |
| getName | back to summary |
|---|---|
| public String getName() Implements jakarta. Doc from jakarta. Gets the name of the Servlet or Filter that is represented by this Registration. | |
| getServletNameMappings | back to summary |
|---|---|
| public Collection Implements jakarta. Doc from 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. Doc from 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(final 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.
| |
| setInitParameter | back to summary |
|---|---|
| public boolean setInitParameter(final String name, final String value) Implements jakarta. Doc from jakarta. Sets the initialization parameter with the given name and value on the Servlet or Filter that is represented by this Registration.
| |
| setInitParameters | back to summary |
|---|---|
| public Set Implements jakarta. Doc from jakarta. Sets the given initialization parameters on the Servlet or Filter that is represented by this Registration.
The given map of initialization parameters is processed by-value, i.e., for each initialization parameter
contained in the map, this method calls
The returned set is not backed by the | |