JSF-Spring

de.mindmatters.faces.spring.context.servlet
Class FacesContextFilter

java.lang.Object
  extended by org.springframework.web.filter.GenericFilterBean
      extended by de.mindmatters.faces.spring.context.servlet.FacesContextFilter
All Implemented Interfaces:
javax.servlet.Filter, BeanNameAware, DisposableBean, InitializingBean, ServletContextAware

public final class FacesContextFilter
extends GenericFilterBean

Filter implementation that creates and releases a FacesContext which contains per-request state information. Should be used if it is necessary to implement Filters which want to access the current FacesContext. This class should be the first Filter in the filter chain.

Author:
Andreas Kuhrwahl

Field Summary
 
Fields inherited from class org.springframework.web.filter.GenericFilterBean
logger
 
Constructor Summary
FacesContextFilter()
           
 
Method Summary
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
          
 
Methods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, afterPropertiesSet, destroy, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setFilterConfig, setServletContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacesContextFilter

public FacesContextFilter()
Method Detail

doFilter

public void doFilter(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     javax.servlet.FilterChain chain)
              throws java.io.IOException,
                     javax.servlet.ServletException

Throws:
java.io.IOException
javax.servlet.ServletException

JSF-Spring

Copyright © 2006 mindmatters GmbH & Co. KG