Save This Page
Home » apache-tomcat-6.0.26-src » org.apache » catalina » core » [javadoc | source]
org.apache.catalina.core
public final class: ApplicationFilterConfig [javadoc | source]
java.lang.Object
   org.apache.catalina.core.ApplicationFilterConfig

All Implemented Interfaces:
    FilterConfig, Serializable

Implementation of a javax.servlet.FilterConfig useful in managing the filter instances instantiated when a web application is first started.
Field Summary
protected static  StringManager sm     
protected static  Properties restrictedFilters    Restricted filters (which can only be loaded by a privileged webapp). 
Constructor:
 ApplicationFilterConfig(Context context,
    FilterDef filterDef) throws ClassCastException, ClassNotFoundException, IllegalAccessException, InstantiationException, ServletException, InvocationTargetException, NamingException 
    Construct a new ApplicationFilterConfig for the specified filter definition.
    Parameters:
    context - The context with which we are associated
    filterDef - Filter definition for which a FilterConfig is to be constructed
    Throws:
    ClassCastException - if the specified class does not implement the javax.servlet.Filter interface
    ClassNotFoundException - if the filter class cannot be found
    IllegalAccessException - if the filter class cannot be publicly instantiated
    InstantiationException - if an exception occurs while instantiating the filter object
    ServletException - if thrown by the filter's init() method
    NamingException -
    InvocationTargetException -
    exception: ClassCastException - if the specified class does not implement the javax.servlet.Filter interface
    exception: ClassNotFoundException - if the filter class cannot be found
    exception: IllegalAccessException - if the filter class cannot be publicly instantiated
    exception: InstantiationException - if an exception occurs while instantiating the filter object
    exception: ServletException - if thrown by the filter's init() method
Method from org.apache.catalina.core.ApplicationFilterConfig Summary:
getFilter,   getFilterClass,   getFilterDef,   getFilterInitParameterMap,   getFilterName,   getInitParameter,   getInitParameterNames,   getServletContext,   isFilterAllowed,   release,   setFilterDef,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.catalina.core.ApplicationFilterConfig Detail:
 Filter getFilter() throws ClassCastException, ClassNotFoundException, IllegalAccessException, InstantiationException, ServletException, InvocationTargetException, NamingException 
    Return the application Filter we are configured for.
 public String getFilterClass() 
    Return the class of the filter we are configuring.
 FilterDef getFilterDef() 
    Return the filter definition we are configured for.
 public Map<String, String> getFilterInitParameterMap() 
 public String getFilterName() 
    Return the name of the filter we are configuring.
 public String getInitParameter(String name) 
    Return a String containing the value of the named initialization parameter, or null if the parameter does not exist.
 public Enumeration getInitParameterNames() 
    Return an Enumeration of the names of the initialization parameters for this Filter.
 public ServletContext getServletContext() 
    Return the ServletContext of our associated web application.
 protected boolean isFilterAllowed(Class filterClass) 
    Return true if loading this filter is allowed.
  void release() 
    Release the Filter instance associated with this FilterConfig, if there is one.
  void setFilterDef(FilterDef filterDef) throws ClassCastException, ClassNotFoundException, IllegalAccessException, InstantiationException, ServletException, InvocationTargetException, NamingException 
    Set the filter definition we are configured for. This has the side effect of instantiating an instance of the corresponding filter class.
 public String toString() 
    Return a String representation of this object.