org.mentawai.util
Class DebugServletFilter
java.lang.Object
org.mentawai.util.DebugServletFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class DebugServletFilter
- extends Object
- implements javax.servlet.Filter
A Servlet filter for showing the execution of the action chain.
- Author:
- Sergio Oliveira
|
Method Summary |
static void |
addStaticInfo(String s)
|
static void |
debug(Action a,
Consequence c)
|
static void |
debug(Action a,
Filter f)
|
static void |
debug(Action a,
long time)
|
static void |
debug(Action a,
String value,
boolean flag)
|
static void |
debug(Action a,
String actionName,
String innerAction,
ActionConfig ac,
Locale pageLocale,
Locale actionLocale)
|
static void |
debug(StringBuffer sb,
Consequence c)
|
static void |
debug(StringBuffer sb,
Filter f)
|
static void |
debug(StringBuffer sb,
long time)
|
static void |
debug(StringBuffer sb,
String value,
boolean flag)
|
static void |
debug(StringBuffer sb,
String actionName,
String innerAction,
ActionConfig ac,
Locale pageLocale,
Locale actionLocale)
|
static void |
debugInputOutput(Action action)
|
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain)
|
static StringBuffer |
getDebug(Action action)
|
static StringBuffer |
getDebug(Output output)
|
void |
init(javax.servlet.FilterConfig filterConfig)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG_KEY
public static String DEBUG_KEY
COMMENTED
public static boolean COMMENTED
DebugServletFilter
public DebugServletFilter()
addStaticInfo
public static void addStaticInfo(String s)
doFilter
public void doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
- Specified by:
doFilter in interface javax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
debug
public static void debug(Action a,
Filter f)
debug
public static void debug(StringBuffer sb,
Filter f)
debug
public static void debug(Action a,
String value,
boolean flag)
debug
public static void debug(StringBuffer sb,
String value,
boolean flag)
debug
public static void debug(Action a,
long time)
debug
public static void debug(StringBuffer sb,
long time)
debug
public static void debug(Action a,
Consequence c)
debug
public static void debug(StringBuffer sb,
Consequence c)
debug
public static void debug(Action a,
String actionName,
String innerAction,
ActionConfig ac,
Locale pageLocale,
Locale actionLocale)
debug
public static void debug(StringBuffer sb,
String actionName,
String innerAction,
ActionConfig ac,
Locale pageLocale,
Locale actionLocale)
getDebug
public static StringBuffer getDebug(Action action)
getDebug
public static StringBuffer getDebug(Output output)
debugInputOutput
public static void debugInputOutput(Action action)
init
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
- Specified by:
init in interface javax.servlet.Filter
- Throws:
javax.servlet.ServletException
destroy
public void destroy()
- Specified by:
destroy in interface javax.servlet.Filter
Copyright © 2011. All Rights Reserved.