org.apache.sesame.filter
Class ConnectionFilter

java.lang.Object
  |
  +--org.apache.sesame.filter.AbstractFilter
        |
        +--org.apache.sesame.filter.ConnectionFilter
All Implemented Interfaces:
javax.servlet.Filter

public class ConnectionFilter
extends AbstractFilter

Performs an HTTP connection to the back end application. The Request object must have been put as an HTTP attribute and be filled correctly prior to this filter being invoked. This must be the last filter in the chain.

Version:
$Id: ConnectionFilter.java,v 1.2 2002/06/03 18:18:25 vmassol Exp $
Author:
Vincent Massol

Fields inherited from class org.apache.sesame.filter.AbstractFilter
config, HTTP_REQUEST_ATTRIBUTE
 
Constructor Summary
ConnectionFilter()
           
 
Method Summary
 void execute(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain)
          All Sesame filters must implement this method.
 
Methods inherited from class org.apache.sesame.filter.AbstractFilter
destroy, doFilter, getApplicationRequest, getFilterConfig, init
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

ConnectionFilter

public ConnectionFilter()
Method Detail

execute

public void execute(javax.servlet.ServletRequest servletRequest,
                    javax.servlet.ServletResponse servletResponse,
                    javax.servlet.FilterChain filterChain)
             throws java.io.IOException,
                    javax.servlet.ServletException
Description copied from class: AbstractFilter
All Sesame filters must implement this method. This is where their execution code is placed. This is equivalent to the filter doFilter method but has been renamed so that this AbstractFilter filter can wrap it and perform additionnal actions such as managing exceptions and logging them, etc.
Overrides:
execute in class AbstractFilter
See Also:
AbstractFilter.execute(ServletRequest, ServletResponse, FilterChain)


Copyright © 2002-2002 Apache Software Foundation. All Rights Reserved.