com.acme
Class TestFilter
java.lang.Object
com.acme.TestFilter
- All Implemented Interfaces:
- Filter
public class TestFilter
- extends Object
- implements Filter
TestFilter.
This filter checks for a none local request, and if the init parameter
"remote" is not set to true, then all non local requests are forwarded
to /remote.html
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestFilter
public TestFilter()
init
public void init(FilterConfig filterConfig)
throws ServletException
- Specified by:
init
in interface Filter
- Throws:
ServletException
doFilter
public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
throws IOException,
ServletException
- Specified by:
doFilter
in interface Filter
- Throws:
IOException
ServletException
destroy
public void destroy()
- Specified by:
destroy
in interface Filter
Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.