org.apache.activemq.web
Class SessionFilter

java.lang.Object
  extended by org.apache.activemq.web.SessionFilter
All Implemented Interfaces:
Filter

public class SessionFilter
extends Object
implements Filter

SessionFilter. Simple filter to ensure that all clients have a session. Prevents problems with AJAX requests.


Constructor Summary
SessionFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
           
 void init(FilterConfig filterConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionFilter

public SessionFilter()
Method Detail

init

public void init(FilterConfig filterConfig)
          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


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.