org.apache.catalina.core
public final class ApplicationFilterConfig extends java.lang.Object implements javax.servlet.FilterConfig, 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 static java.util.Properties |
restrictedFilters
Restricted filters (which can only be loaded by a privileged webapp).
|
protected static StringManager |
sm |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFilterClass()
Return the class of the filter we are configuring.
|
java.util.Map<java.lang.String,java.lang.String> |
getFilterInitParameterMap() |
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 |
getInitParameterNames()
Return an
Enumeration of the names of the initialization
parameters for this Filter. |
javax.servlet.ServletContext |
getServletContext()
Return the ServletContext of our associated web application.
|
protected boolean |
isFilterAllowed(java.lang.Class filterClass)
Return
true if loading this filter is allowed. |
java.lang.String |
toString()
Return a String representation of this object.
|
protected static StringManager sm
protected static java.util.Properties restrictedFilters
public java.lang.String getFilterName()
getFilterName
in interface javax.servlet.FilterConfig
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.getInitParameter
in interface javax.servlet.FilterConfig
name
- Name of the requested initialization parameterString
containing the value
of the initialization parameterpublic java.util.Enumeration getInitParameterNames()
Enumeration
of the names of the initialization
parameters for this Filter.getInitParameterNames
in interface javax.servlet.FilterConfig
Enumeration
of String
objects containing the names of the filter's
initialization parameterspublic javax.servlet.ServletContext getServletContext()
getServletContext
in interface javax.servlet.FilterConfig
ServletContext
object, used
by the caller to interact with its servlet
containerServletContext
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Map<java.lang.String,java.lang.String> getFilterInitParameterMap()
protected boolean isFilterAllowed(java.lang.Class filterClass)
true
if loading this filter is allowed.Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.