org.apache.catalina.core

Class ApplicationFilterConfig

public final class ApplicationFilterConfig extends Object implements FilterConfig, Serializable

Implementation of a javax.servlet.FilterConfig useful in managing the filter instances instantiated when a web application is first started.

Version: $Revision: 812133 $ $Date: 2009-09-07 15:37:06 +0200 (Mon, 07 Sep 2009) $

Author: Craig R. McClanahan

Field Summary
protected static PropertiesrestrictedFilters
Restricted filters (which can only be loaded by a privileged webapp).
protected static StringManagersm
Method Summary
StringgetFilterClass()
Return the class of the filter we are configuring.
Map<String,String>getFilterInitParameterMap()
StringgetFilterName()
Return the name of the filter we are configuring.
StringgetInitParameter(String name)
Return a String containing the value of the named initialization parameter, or null if the parameter does not exist.
EnumerationgetInitParameterNames()
Return an Enumeration of the names of the initialization parameters for this Filter.
ServletContextgetServletContext()
Return the ServletContext of our associated web application.
protected booleanisFilterAllowed(Class filterClass)
Return true if loading this filter is allowed.
StringtoString()
Return a String representation of this object.

Field Detail

restrictedFilters

protected static Properties restrictedFilters
Restricted filters (which can only be loaded by a privileged webapp).

sm

protected static StringManager sm

Method Detail

getFilterClass

public String getFilterClass()
Return the class of the filter we are configuring.

getFilterInitParameterMap

public Map<String,String> getFilterInitParameterMap()

getFilterName

public String getFilterName()
Return the name of the filter we are configuring.

getInitParameter

public String getInitParameter(String name)
Return a String containing the value of the named initialization parameter, or null if the parameter does not exist.

Parameters: name Name of the requested initialization parameter

getInitParameterNames

public Enumeration getInitParameterNames()
Return an Enumeration of the names of the initialization parameters for this Filter.

getServletContext

public ServletContext getServletContext()
Return the ServletContext of our associated web application.

isFilterAllowed

protected boolean isFilterAllowed(Class filterClass)
Return true if loading this filter is allowed.

toString

public String toString()
Return a String representation of this object.
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.