org.chwf.servlet.filter
Class FilterSet
java.lang.Object
|
+--org.chwf.servlet.filter.FilterSet
- public class FilterSet
- extends java.lang.Object
Contains a set of filters.
- Author:
- Paul Strack
Method Summary |
void |
destroy()
Destroy all filters. |
void |
doChain(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.Filter terminator)
Run the chain for this request. |
protected java.util.Map |
getFilterInfoMap()
Get the filter info map. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilterSet
public FilterSet(AllFilterConfig allFilterConfig)
throws javax.servlet.ServletException
- Constructor.
- Parameters:
allFilterConfig
- The configuration for all filters.- Throws:
javax.servlet.ServletException
- If any filter fails to be initialized.
doChain
public void doChain(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.Filter terminator)
throws java.io.IOException,
javax.servlet.ServletException
- Run the chain for this request. When the chain is complete, the terminator
filter is invoked. This terminator filter should invoke the resource at the
end of the chain.
- Parameters:
request
- The request.response
- The response.terminator
- A filter that invokes the final resource invoked once
the chain is complete.- Throws:
javax.servlet.ServletException
- For servlet errors.java.io.IOException
- For I/O errors.
destroy
public void destroy()
- Destroy all filters.
getFilterInfoMap
protected java.util.Map getFilterInfoMap()
- Get the filter info map. This map contains
FilterInfo
objects
indexed by the filter name.
- Returns:
- The filter info map.
Copyright © 2002-2004, Paul Strack. All Rights Reserved.