org.granite.clustering
Class CreateSessionFilter

java.lang.Object
  extended by org.granite.clustering.CreateSessionFilter
All Implemented Interfaces:
Filter

public class CreateSessionFilter
extends Object
implements Filter

This filter forces the creation of an HTTP session. Only useful in cluster environments when sticky-session is enabled, in order to ensure that a client will always use the same cluster node.

Author:
Franck WOLFF

Constructor Summary
CreateSessionFilter()
           
 
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
 

Constructor Detail

CreateSessionFilter

public CreateSessionFilter()
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