info.magnolia.debug
Class SessionDebugger

java.lang.Object
  extended by info.magnolia.cms.filters.AbstractMgnlFilter
      extended by info.magnolia.debug.SessionDebugger
All Implemented Interfaces:
MgnlFilter, EventListener, javax.servlet.Filter, javax.servlet.http.HttpSessionAttributeListener, javax.servlet.http.HttpSessionListener

public class SessionDebugger
extends AbstractMgnlFilter
implements javax.servlet.http.HttpSessionListener, javax.servlet.http.HttpSessionAttributeListener

A Filter and Listener that can help debugging session issues.

Version:
$Revision: $ ($Author: $)
Author:
gjoseph

Constructor Summary
SessionDebugger()
           
 
Method Summary
 void attributeAdded(javax.servlet.http.HttpSessionBindingEvent event)
           
 void attributeRemoved(javax.servlet.http.HttpSessionBindingEvent event)
           
 void attributeReplaced(javax.servlet.http.HttpSessionBindingEvent event)
           
 void doFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain)
           
protected  void dumpSession(javax.servlet.http.HttpSession session, StringBuffer sb)
           
protected  void dumpSessionBindingEvent(javax.servlet.http.HttpSessionBindingEvent event, StringBuffer sb)
           
protected  void dumpStacktrace(StringBuffer sb)
           
protected  void logSessionEvent(javax.servlet.http.HttpSessionEvent event, String s)
           
 void sessionCreated(javax.servlet.http.HttpSessionEvent se)
           
 void sessionDestroyed(javax.servlet.http.HttpSessionEvent se)
           
 
Methods inherited from class info.magnolia.cms.filters.AbstractMgnlFilter
acceptsEncoding, acceptsGzipEncoding, addAndVerifyHeader, addBypass, addMapping, bypasses, destroy, doFilter, getBypasses, getDispatching, getMapping, getMappings, getName, headerContains, init, isEnabled, mapsTo, matches, matchesDispatching, setDispatching, setEnabled, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionDebugger

public SessionDebugger()
Method Detail

doFilter

public void doFilter(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response,
                     javax.servlet.FilterChain chain)
              throws IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in class AbstractMgnlFilter
Throws:
IOException
javax.servlet.ServletException

sessionCreated

public void sessionCreated(javax.servlet.http.HttpSessionEvent se)
Specified by:
sessionCreated in interface javax.servlet.http.HttpSessionListener

sessionDestroyed

public void sessionDestroyed(javax.servlet.http.HttpSessionEvent se)
Specified by:
sessionDestroyed in interface javax.servlet.http.HttpSessionListener

attributeAdded

public void attributeAdded(javax.servlet.http.HttpSessionBindingEvent event)
Specified by:
attributeAdded in interface javax.servlet.http.HttpSessionAttributeListener

attributeRemoved

public void attributeRemoved(javax.servlet.http.HttpSessionBindingEvent event)
Specified by:
attributeRemoved in interface javax.servlet.http.HttpSessionAttributeListener

attributeReplaced

public void attributeReplaced(javax.servlet.http.HttpSessionBindingEvent event)
Specified by:
attributeReplaced in interface javax.servlet.http.HttpSessionAttributeListener

logSessionEvent

protected void logSessionEvent(javax.servlet.http.HttpSessionEvent event,
                               String s)

dumpStacktrace

protected void dumpStacktrace(StringBuffer sb)

dumpSession

protected void dumpSession(javax.servlet.http.HttpSession session,
                           StringBuffer sb)

dumpSessionBindingEvent

protected void dumpSessionBindingEvent(javax.servlet.http.HttpSessionBindingEvent event,
                                       StringBuffer sb)


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.