info.magnolia.debug
Class SessionDebugger
java.lang.Object
info.magnolia.cms.filters.AbstractMgnlFilter
info.magnolia.debug.SessionDebugger
- All Implemented Interfaces:
- MgnlFilter, java.util.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
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,
java.lang.StringBuffer sb)
|
protected void |
dumpSessionBindingEvent(javax.servlet.http.HttpSessionBindingEvent event,
java.lang.StringBuffer sb)
|
protected void |
dumpStacktrace(java.lang.StringBuffer sb)
|
protected void |
logSessionEvent(javax.servlet.http.HttpSessionEvent event,
java.lang.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, getDispatchRules, getMapping, getMappings, getName, headerContains, init, isEnabled, mapsTo, matches, matchesDispatching, setDispatchRules, setEnabled, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionDebugger
public SessionDebugger()
doFilter
public void doFilter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
- Specified by:
doFilter
in class AbstractMgnlFilter
- Throws:
java.io.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,
java.lang.String s)
dumpStacktrace
protected void dumpStacktrace(java.lang.StringBuffer sb)
dumpSession
protected void dumpSession(javax.servlet.http.HttpSession session,
java.lang.StringBuffer sb)
dumpSessionBindingEvent
protected void dumpSessionBindingEvent(javax.servlet.http.HttpSessionBindingEvent event,
java.lang.StringBuffer sb)
Copyright © 2003-2010 Magnolia International Ltd.. All Rights Reserved.