com.acme
Class TestFilter

java.lang.Object
  extended by 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


Constructor Summary
TestFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
           
 void init(FilterConfig filterConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestFilter

public TestFilter()
Method Detail

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.