public final class ApplicationFilterConfig
extends java.lang.Object
implements java.io.Serializable
javax.servlet.FilterConfig
useful in
managing the filter instances instantiated when a web application
is first started.Modifier and Type | Field and Description |
---|---|
protected boolean |
dynamic
Dynamic flag.
|
protected ApplicationFilterConfigFacade |
facade
The facade associated with this wrapper.
|
protected static Logger |
log |
protected static StringManager |
sm |
Constructor and Description |
---|
ApplicationFilterConfig(Context context,
FilterDef filterDef)
Construct a new ApplicationFilterConfig for the specified filter
definition.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addMappingForServletNames(java.util.EnumSet<DispatcherType> dispatcherTypes,
boolean isMatchAfter,
java.lang.String... servletNames) |
boolean |
addMappingForUrlPatterns(java.util.EnumSet<DispatcherType> dispatcherTypes,
boolean isMatchAfter,
java.lang.String... urlPatterns) |
FilterRegistration |
getFacade()
Get the facade FilterRegistration.
|
java.lang.String |
getFilterClass()
Return the class of the filter we are configuring.
|
FilterDef |
getFilterDef()
Return the filter definition we are configured for.
|
Filter |
getFilterInstance()
Return the filter instance.
|
java.lang.String |
getFilterName()
Return the name of the filter we are configuring.
|
java.lang.String |
getInitParameter(java.lang.String name)
Return a
String containing the value of the named
initialization parameter, or null if the parameter
does not exist. |
java.util.Enumeration<java.lang.String> |
getInitParameterNames()
Return an
Enumeration of the names of the initialization
parameters for this Filter. |
java.util.Map<java.lang.String,java.lang.String> |
getInitParameters() |
ServletContext |
getServletContext()
Return the ServletContext of our associated web application.
|
java.util.Collection<java.lang.String> |
getServletNameMappings() |
java.util.Collection<java.lang.String> |
getUrlPatternMappings() |
boolean |
isDynamic() |
void |
setAsyncSupported(boolean asyncSupported) |
void |
setDescription(java.lang.String description) |
void |
setDynamic(boolean dynamic) |
void |
setFilter(Filter filter)
Set the filter instance programmatically.
|
boolean |
setInitParameter(java.lang.String name,
java.lang.String value) |
java.util.Set<java.lang.String> |
setInitParameters(java.util.Map<java.lang.String,java.lang.String> initParameters) |
java.lang.String |
toString()
Return a String representation of this object.
|
protected static Logger log
protected static StringManager sm
protected ApplicationFilterConfigFacade facade
protected boolean dynamic
public ApplicationFilterConfig(Context context, FilterDef filterDef)
context
- The context with which we are associatedfilterDef
- Filter definition for which a FilterConfig is to be
constructedpublic java.lang.String getFilterName()
public java.lang.String getFilterClass()
public java.lang.String getInitParameter(java.lang.String name)
String
containing the value of the named
initialization parameter, or null
if the parameter
does not exist.name
- Name of the requested initialization parameterpublic java.util.Enumeration<java.lang.String> getInitParameterNames()
Enumeration
of the names of the initialization
parameters for this Filter.public ServletContext getServletContext()
public FilterRegistration getFacade()
public boolean isDynamic()
public void setDynamic(boolean dynamic)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean addMappingForServletNames(java.util.EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, java.lang.String... servletNames)
public boolean addMappingForUrlPatterns(java.util.EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, java.lang.String... urlPatterns)
public java.util.Collection<java.lang.String> getServletNameMappings()
public java.util.Collection<java.lang.String> getUrlPatternMappings()
public void setAsyncSupported(boolean asyncSupported)
public void setDescription(java.lang.String description)
public boolean setInitParameter(java.lang.String name, java.lang.String value)
public java.util.Set<java.lang.String> setInitParameters(java.util.Map<java.lang.String,java.lang.String> initParameters)
public java.util.Map<java.lang.String,java.lang.String> getInitParameters()
public void setFilter(Filter filter)
public Filter getFilterInstance()
public FilterDef getFilterDef()