org.granite.clustering
Class CreateSessionFilter
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateSessionFilter
public CreateSessionFilter()
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