org.apache.geronimo.console.servlet
Class ForwardDispatchFilter

java.lang.Object
  extended by org.apache.geronimo.console.servlet.ForwardDispatchFilter
All Implemented Interfaces:
Filter

public class ForwardDispatchFilter
extends Object
implements Filter

Filter that wrappers HTTP requests forwarded from a separate context via a named request dispatcher. The wrapped HTTP requests return attributes from the original request instead of the forwarded instance of the request. Deployment descriptors that use this filter should specify "FORWARD" as the dispatcher type in their filter-mapping elements, as per the 2.4 Servlet Specification. e.g.

     
        myfilter
        myservlet
        FORWARD
     
     


Nested Class Summary
protected static class ForwardDispatchFilter.ForwardRequest
           
 
Field Summary
protected  FilterConfig filterConfig
           
 
Constructor Summary
ForwardDispatchFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
           
 void init(FilterConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filterConfig

protected FilterConfig filterConfig
Constructor Detail

ForwardDispatchFilter

public ForwardDispatchFilter()
Method Detail

init

public void init(FilterConfig config)
          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 © 2003-2008 The Apache Geronimo development community. All Rights Reserved.