org.chwf.servlet.filter
Class FilterChainImpl
java.lang.Object
|
+--org.chwf.servlet.filter.FilterChainImpl
- All Implemented Interfaces:
- javax.servlet.FilterChain
- public class FilterChainImpl
- extends java.lang.Object
- implements javax.servlet.FilterChain
Implementation of FilterChain
.
This class duplicates the filter functionality of the Servlet 2.3 API.
- Author:
- Paul Strack
Constructor Summary |
FilterChainImpl(javax.servlet.Filter[] filters)
Constructor. |
Method Summary |
void |
doChain(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.Filter terminator)
Execute the chain. |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
Causes the next filter in the chain to be invoked, or if the calling
filter is the last filter in the chain, causes the resource at
the end of the chain to be invoked. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilterChainImpl
public FilterChainImpl(javax.servlet.Filter[] filters)
- Constructor.
- Parameters:
filters
- The filters in the chain.
doChain
public void doChain(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.Filter terminator)
throws java.io.IOException,
javax.servlet.ServletException
- Execute the chain. 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 to pass along the chain.response
- The response to pass along the chain.terminator
- A filter that invokes the final resource invoked once
the chain is complete.- Throws:
java.io.IOException
- For I/O errors.javax.servlet.ServletException
- For servlet errors.
doFilter
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- Causes the next filter in the chain to be invoked, or if the calling
filter is the last filter in the chain, causes the resource at
the end of the chain to be invoked.
- Specified by:
doFilter
in interface javax.servlet.FilterChain
- Parameters:
request
- The request to pass along the chain.response
- The response to pass along the chain.- Throws:
java.io.IOException
- For IO errors.javax.servlet.ServletException
- For servlet errors.
Copyright © 2002-2004, Paul Strack. All Rights Reserved.