|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.manager.StatusTransformer
public class StatusTransformer
This is a refactoring of the servlet to externalize the output into a simple class. Although we could use XSLT, that is unnecessarily complex.
Constructor Summary | |
---|---|
StatusTransformer()
|
Method Summary | |
---|---|
static java.lang.String |
filter(java.lang.Object obj)
Filter the specified message string for characters that are sensitive in HTML. |
static java.lang.String |
formatSeconds(java.lang.Object obj)
Formats the given time (given in seconds) as a string. |
static java.lang.String |
formatSize(java.lang.Object obj,
boolean mb)
Display the given size in bytes, either as KB or MB. |
static java.lang.String |
formatTime(java.lang.Object obj,
boolean seconds)
Display the given time in ms, either as ms or s. |
static void |
setContentType(javax.servlet.http.HttpServletResponse response,
int mode)
|
static void |
writeBody(java.io.PrintWriter writer,
java.lang.Object[] args,
int mode)
Write the header body. |
static void |
writeConnectorState(java.io.PrintWriter writer,
javax.management.ObjectName tpName,
java.lang.String name,
javax.management.MBeanServer mBeanServer,
java.util.Vector globalRequestProcessors,
java.util.Vector requestProcessors,
int mode)
Write connector state. |
protected static void |
writeContext(java.io.PrintWriter writer,
javax.management.ObjectName objectName,
javax.management.MBeanServer mBeanServer,
int mode)
Write context state. |
static void |
writeDetailedState(java.io.PrintWriter writer,
javax.management.MBeanServer mBeanServer,
int mode)
Write applications state. |
static void |
writeFooter(java.io.PrintWriter writer,
int mode)
|
static void |
writeHeader(java.io.PrintWriter writer,
int mode)
|
static void |
writeJspMonitor(java.io.PrintWriter writer,
java.util.Set jspMonitorONs,
javax.management.MBeanServer mBeanServer,
int mode)
Write JSP monitoring information. |
static void |
writeManager(java.io.PrintWriter writer,
java.lang.Object[] args,
int mode)
Write the manager webapp information. |
static void |
writeManager(java.io.PrintWriter writer,
javax.management.ObjectName objectName,
javax.management.MBeanServer mBeanServer,
int mode)
Write detailed information about a manager. |
static void |
writeOSState(java.io.PrintWriter writer,
int mode)
Write the OS state. |
static void |
writePageHeading(java.io.PrintWriter writer,
java.lang.Object[] args,
int mode)
|
protected static void |
writeProcessorState(java.io.PrintWriter writer,
javax.management.ObjectName pName,
javax.management.MBeanServer mBeanServer,
int mode)
Write processor state. |
static void |
writeServerInfo(java.io.PrintWriter writer,
java.lang.Object[] args,
int mode)
|
static void |
writeVMState(java.io.PrintWriter writer,
int mode)
Write the VM state. |
static void |
writeWrapper(java.io.PrintWriter writer,
javax.management.ObjectName objectName,
javax.management.MBeanServer mBeanServer,
int mode)
Write detailed information about a wrapper. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StatusTransformer()
Method Detail |
---|
public static void setContentType(javax.servlet.http.HttpServletResponse response, int mode)
public static void writeHeader(java.io.PrintWriter writer, int mode)
public static void writeBody(java.io.PrintWriter writer, java.lang.Object[] args, int mode)
writer
- The output writerargs
- What to writemode
- 0 means writepublic static void writeManager(java.io.PrintWriter writer, java.lang.Object[] args, int mode)
writer
- The output writerargs
- What to writemode
- 0 means writepublic static void writePageHeading(java.io.PrintWriter writer, java.lang.Object[] args, int mode)
public static void writeServerInfo(java.io.PrintWriter writer, java.lang.Object[] args, int mode)
public static void writeFooter(java.io.PrintWriter writer, int mode)
public static void writeOSState(java.io.PrintWriter writer, int mode)
public static void writeVMState(java.io.PrintWriter writer, int mode) throws java.lang.Exception
java.lang.Exception
public static void writeConnectorState(java.io.PrintWriter writer, javax.management.ObjectName tpName, java.lang.String name, javax.management.MBeanServer mBeanServer, java.util.Vector globalRequestProcessors, java.util.Vector requestProcessors, int mode) throws java.lang.Exception
java.lang.Exception
protected static void writeProcessorState(java.io.PrintWriter writer, javax.management.ObjectName pName, javax.management.MBeanServer mBeanServer, int mode) throws java.lang.Exception
java.lang.Exception
public static void writeDetailedState(java.io.PrintWriter writer, javax.management.MBeanServer mBeanServer, int mode) throws java.lang.Exception
java.lang.Exception
protected static void writeContext(java.io.PrintWriter writer, javax.management.ObjectName objectName, javax.management.MBeanServer mBeanServer, int mode) throws java.lang.Exception
java.lang.Exception
public static void writeManager(java.io.PrintWriter writer, javax.management.ObjectName objectName, javax.management.MBeanServer mBeanServer, int mode) throws java.lang.Exception
java.lang.Exception
public static void writeJspMonitor(java.io.PrintWriter writer, java.util.Set jspMonitorONs, javax.management.MBeanServer mBeanServer, int mode) throws java.lang.Exception
java.lang.Exception
public static void writeWrapper(java.io.PrintWriter writer, javax.management.ObjectName objectName, javax.management.MBeanServer mBeanServer, int mode) throws java.lang.Exception
java.lang.Exception
public static java.lang.String filter(java.lang.Object obj)
obj
- The message string to be filteredpublic static java.lang.String formatSize(java.lang.Object obj, boolean mb)
mb
- true to display megabytes, false for kilobytespublic static java.lang.String formatTime(java.lang.Object obj, boolean seconds)
seconds
- true to display seconds, false for millisecondspublic static java.lang.String formatSeconds(java.lang.Object obj)
obj
- Time object to be formatted as string
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |