Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webengine.app
Class WebEngineFilter

java.lang.Object
  extended by org.nuxeo.ecm.webengine.app.WebEngineFilter
All Implemented Interfaces:
Filter

public class WebEngineFilter
extends Object
implements Filter

This filter must be declared after the nuxeo authentication filter since it needs an authentication info. The session synchronization is done only if NuxeoRequestControllerFilter was not already done it and stateful flag for the request path is true.

Author:
Bogdan Stefanescu

Field Summary
static String STATEFULL
          Framework property giving the default session scope - stateful or stateless.
static String TX_AUTO
          Framework property to control whether tx is started by webengine by default
 
Constructor Summary
WebEngineFilter()
           
 
Method Summary
 void cleanup(org.nuxeo.ecm.webengine.app.WebEngineFilter.Config config, AbstractWebContext ctx, HttpServletRequest request, HttpServletResponse response)
           
 void closeTx(org.nuxeo.ecm.webengine.app.WebEngineFilter.Config config, HttpServletRequest req)
           
 void destroy()
           
 void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
           
 void init(FilterConfig filterConfig)
           
 AbstractWebContext initRequest(org.nuxeo.ecm.webengine.app.WebEngineFilter.Config config, HttpServletRequest request, HttpServletResponse response)
           
 void initTx(org.nuxeo.ecm.webengine.app.WebEngineFilter.Config config, HttpServletRequest req)
           
 void postRequest(HttpServletRequest request, HttpServletResponse response)
           
 void preRequest(HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TX_AUTO

public static final String TX_AUTO
Framework property to control whether tx is started by webengine by default

See Also:
Constant Field Values

STATEFULL

public static final String STATEFULL
Framework property giving the default session scope - stateful or stateless.

See Also:
Constant Field Values
Constructor Detail

WebEngineFilter

public WebEngineFilter()
Method Detail

init

public void init(FilterConfig filterConfig)
          throws ServletException
Specified by:
init in interface Filter
Throws:
ServletException

destroy

public void destroy()
Specified by:
destroy in interface Filter

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response,
                     FilterChain chain)
              throws IOException,
                     ServletException
Specified by:
doFilter in interface Filter
Throws:
IOException
ServletException

preRequest

public void preRequest(HttpServletRequest request,
                       HttpServletResponse response)
                throws Exception
Throws:
Exception

postRequest

public void postRequest(HttpServletRequest request,
                        HttpServletResponse response)
                 throws Exception
Throws:
Exception

initRequest

public AbstractWebContext initRequest(org.nuxeo.ecm.webengine.app.WebEngineFilter.Config config,
                                      HttpServletRequest request,
                                      HttpServletResponse response)

cleanup

public void cleanup(org.nuxeo.ecm.webengine.app.WebEngineFilter.Config config,
                    AbstractWebContext ctx,
                    HttpServletRequest request,
                    HttpServletResponse response)

initTx

public void initTx(org.nuxeo.ecm.webengine.app.WebEngineFilter.Config config,
                   HttpServletRequest req)

closeTx

public void closeTx(org.nuxeo.ecm.webengine.app.WebEngineFilter.Config config,
                    HttpServletRequest req)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.