public class FilterHolder
extends java.lang.Object
AwsServletContext
object and are used by the by the FilterChainHandler object to process a request.| Modifier and Type | Class and Description |
|---|---|
protected class |
FilterHolder.Registration
Registration class for the filter.
|
| Constructor and Description |
|---|
FilterHolder(javax.servlet.Filter newFilter,
javax.servlet.ServletContext context) |
FilterHolder(java.lang.String name,
javax.servlet.Filter newFilter,
javax.servlet.ServletContext context)
Creates a new filter holder for the given Filter object.
|
| Modifier and Type | Method and Description |
|---|---|
javax.servlet.Filter |
getFilter()
Returns the filter object
|
javax.servlet.FilterConfig |
getFilterConfig()
The filter config object implementation.
|
java.lang.String |
getFilterName()
The name associated with the filter
|
java.util.Map<java.lang.String,java.lang.String> |
getInitParameters()
The map of initialization parameters passed to the filter
|
FilterHolder.Registration |
getRegistration()
Returns the Registration object for the filter.
|
javax.servlet.ServletContext |
getServletContext()
The servlet context that initialized the filter
|
void |
init()
Initializes the wrapped filter and sets the
isFilterInitialized property to true. |
boolean |
isAnnotated() |
boolean |
isFilterInitialized()
Checks whether the filter this holder is responsible for has been initialized.
|
void |
setFilterName(java.lang.String filterName) |
public FilterHolder(javax.servlet.Filter newFilter,
javax.servlet.ServletContext context)
public FilterHolder(java.lang.String name,
javax.servlet.Filter newFilter,
javax.servlet.ServletContext context)
name - The filter namenewFilter - The filter object to be registered against the namecontext - The ServletContext this object was initialized bypublic void init()
throws javax.servlet.ServletException
isFilterInitialized property to true. This should be called
before invoking a filter if the result of the isFilterInitialized() method is false.javax.servlet.ServletException - Propagates any servlet exception thrown by the filter initializationpublic boolean isFilterInitialized()
init method.public javax.servlet.Filter getFilter()
public javax.servlet.FilterConfig getFilterConfig()
Config object implemented in this filepublic FilterHolder.Registration getRegistration()
Registration object defined in this file implements
both FilterRegistration and FilterRegistration.Dynamicpublic java.lang.String getFilterName()
public void setFilterName(java.lang.String filterName)
public java.util.Map<java.lang.String,java.lang.String> getInitParameters()
public javax.servlet.ServletContext getServletContext()
public boolean isAnnotated()
Copyright © 2018. All Rights Reserved.