org.chwf.servlet.filter
Class AllFilterConfig

java.lang.Object
  |
  +--org.chwf.servlet.filter.AllFilterConfig

public class AllFilterConfig
extends java.lang.Object

Class with configuration data for an entire set of filters. It retrieves filter configuration from the specified XML file.

Author:
Paul Strack

Constructor Summary
AllFilterConfig(javax.servlet.ServletContext context, org.xml.sax.InputSource xml)
          Constructor.
 
Method Summary
 javax.servlet.ServletContext getContext()
          The servlet context.
 java.lang.String getFilterClass(java.lang.String name)
          The filter class for the named filter.
 java.util.Iterator getFilterNames()
          The list of filter names, in the order that the filters appear in the configuration file.
 java.util.Map getInitParameters(java.lang.String name)
          A map containing init parameters for the named filter.
 java.util.Map getResourceMapping()
          Get the file-extension mapping for resources.
 java.lang.String[] getURIPatterns(java.lang.String name)
          An array of URI patterns for the named filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllFilterConfig

public AllFilterConfig(javax.servlet.ServletContext context,
                       org.xml.sax.InputSource xml)
                throws javax.servlet.ServletException
Constructor.
Parameters:
context - The servlet context.
xml - The XML input source.
Throws:
javax.servlet.ServletException - If there is a flaw in the configuration file.
Method Detail

getContext

public javax.servlet.ServletContext getContext()
The servlet context.
Returns:
The servlet context.

getFilterNames

public java.util.Iterator getFilterNames()
The list of filter names, in the order that the filters appear in the configuration file.
Returns:
The list of filter names.

getInitParameters

public java.util.Map getInitParameters(java.lang.String name)
A map containing init parameters for the named filter.
Parameters:
name - The filter name.
Returns:
The init parameters.

getURIPatterns

public java.lang.String[] getURIPatterns(java.lang.String name)
An array of URI patterns for the named filter.
Parameters:
name - The filter name.
Returns:
The URI patterns.

getFilterClass

public java.lang.String getFilterClass(java.lang.String name)
The filter class for the named filter.
Parameters:
name - The filter name.
Returns:
The URI patterns.

getResourceMapping

public java.util.Map getResourceMapping()
Get the file-extension mapping for resources.
Returns:
The resource mapping.


Copyright © 2002-2004, Paul Strack. All Rights Reserved.