GWTP Dispatch Server, Guice implementation 0.6-redhat-2

com.gwtplatform.dispatch.server.guice
Class HttpSessionSecurityCookieFilter

java.lang.Object
  extended by com.gwtplatform.dispatch.server.AbstractHttpSessionSecurityCookieFilter
      extended by com.gwtplatform.dispatch.server.guice.HttpSessionSecurityCookieFilter
All Implemented Interfaces:
javax.servlet.Filter

public class HttpSessionSecurityCookieFilter
extends AbstractHttpSessionSecurityCookieFilter

This filter will automatically inject a security cookie inside the request the first time the page is loaded. This security cookie is based on the HttpSession and will only work if the session is enabled. To setup this filter, add the following line at before any other serve call in your own com.google.inject.servlet.ServletModule#configureServlets:

 filter("*.jsp").through(HttpSessionSecurityCookieFilter.class);
 
You also have to use a .jsp file instead of a .html as your main GWT file.

Author:
Philippe Beaudoin

Method Summary
protected  javax.servlet.http.HttpSession getSession()
           
 
Methods inherited from class com.gwtplatform.dispatch.server.AbstractHttpSessionSecurityCookieFilter
destroy, doFilter, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSession

protected javax.servlet.http.HttpSession getSession()
Specified by:
getSession in class AbstractHttpSessionSecurityCookieFilter

GWTP Dispatch Server, Guice implementation 0.6-redhat-2

Copyright © 2010-2012 ArcBees. All Rights Reserved.