Java Doc for StatusTransformer.java in  » Sevlet-Container » apache-tomcat-6.0.14 » org » apache » catalina » manager » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Sevlet Container » apache tomcat 6.0.14 » org.apache.catalina.manager 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.catalina.manager.StatusTransformer

StatusTransformer
public class StatusTransformer (Code)
This is a refactoring of the servlet to externalize the output into a simple class. Although we could use XSLT, that is unnecessarily complex.
author:
   Peter Lin
version:
   $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $




Method Summary
public static  Stringfilter(Object obj)
     Filter the specified message string for characters that are sensitive in HTML.
public static  StringformatSeconds(Object obj)
     Formats the given time (given in seconds) as a string.
public static  StringformatSize(Object obj, boolean mb)
     Display the given size in bytes, either as KB or MB.
public static  StringformatTime(Object obj, boolean seconds)
     Display the given time in ms, either as ms or s.
public static  voidsetContentType(HttpServletResponse response, int mode)
    
public static  voidwriteBody(PrintWriter writer, Object[] args, int mode)
     Write the header body.
public static  voidwriteConnectorState(PrintWriter writer, ObjectName tpName, String name, MBeanServer mBeanServer, Vector globalRequestProcessors, Vector requestProcessors, int mode)
     Write connector state.
protected static  voidwriteContext(PrintWriter writer, ObjectName objectName, MBeanServer mBeanServer, int mode)
     Write context state.
public static  voidwriteDetailedState(PrintWriter writer, MBeanServer mBeanServer, int mode)
     Write applications state.
public static  voidwriteFooter(PrintWriter writer, int mode)
    
public static  voidwriteHeader(PrintWriter writer, int mode)
     Process a GET request for the specified resource.
public static  voidwriteJspMonitor(PrintWriter writer, Set jspMonitorONs, MBeanServer mBeanServer, int mode)
     Write JSP monitoring information.
public static  voidwriteManager(PrintWriter writer, Object[] args, int mode)
     Write the manager webapp information.
public static  voidwriteManager(PrintWriter writer, ObjectName objectName, MBeanServer mBeanServer, int mode)
     Write detailed information about a manager.
public static  voidwriteOSState(PrintWriter writer, int mode)
     Write the OS state.
public static  voidwritePageHeading(PrintWriter writer, Object[] args, int mode)
    
protected static  voidwriteProcessorState(PrintWriter writer, ObjectName pName, MBeanServer mBeanServer, int mode)
     Write processor state.
public static  voidwriteServerInfo(PrintWriter writer, Object[] args, int mode)
    
public static  voidwriteVMState(PrintWriter writer, int mode)
     Write the VM state.
public static  voidwriteWrapper(PrintWriter writer, ObjectName objectName, MBeanServer mBeanServer, int mode)
     Write detailed information about a wrapper.



Method Detail
filter
public static String filter(Object obj)(Code)
Filter the specified message string for characters that are sensitive in HTML. This avoids potential attacks caused by including JavaScript codes in the request URL that is often reported in error messages.
Parameters:
  obj - The message string to be filtered



formatSeconds
public static String formatSeconds(Object obj)(Code)
Formats the given time (given in seconds) as a string.
Parameters:
  obj - Time object to be formatted as string String formatted time



formatSize
public static String formatSize(Object obj, boolean mb)(Code)
Display the given size in bytes, either as KB or MB.
Parameters:
  mb - true to display megabytes, false for kilobytes



formatTime
public static String formatTime(Object obj, boolean seconds)(Code)
Display the given time in ms, either as ms or s.
Parameters:
  seconds - true to display seconds, false for milliseconds



setContentType
public static void setContentType(HttpServletResponse response, int mode)(Code)



writeBody
public static void writeBody(PrintWriter writer, Object[] args, int mode)(Code)
Write the header body. XML output doesn't bother to output this stuff, since it's just title.
Parameters:
  writer - The output writer
Parameters:
  args - What to write
Parameters:
  mode - 0 means write



writeConnectorState
public static void writeConnectorState(PrintWriter writer, ObjectName tpName, String name, MBeanServer mBeanServer, Vector globalRequestProcessors, Vector requestProcessors, int mode) throws Exception(Code)
Write connector state.



writeContext
protected static void writeContext(PrintWriter writer, ObjectName objectName, MBeanServer mBeanServer, int mode) throws Exception(Code)
Write context state.



writeDetailedState
public static void writeDetailedState(PrintWriter writer, MBeanServer mBeanServer, int mode) throws Exception(Code)
Write applications state.



writeFooter
public static void writeFooter(PrintWriter writer, int mode)(Code)



writeHeader
public static void writeHeader(PrintWriter writer, int mode)(Code)
Process a GET request for the specified resource.
Parameters:
  request - The servlet request we are processing
Parameters:
  response - The servlet response we are creating
exception:
  IOException - if an input/output error occurs
exception:
  ServletException - if a servlet-specified error occurs



writeJspMonitor
public static void writeJspMonitor(PrintWriter writer, Set jspMonitorONs, MBeanServer mBeanServer, int mode) throws Exception(Code)
Write JSP monitoring information.



writeManager
public static void writeManager(PrintWriter writer, Object[] args, int mode)(Code)
Write the manager webapp information.
Parameters:
  writer - The output writer
Parameters:
  args - What to write
Parameters:
  mode - 0 means write



writeManager
public static void writeManager(PrintWriter writer, ObjectName objectName, MBeanServer mBeanServer, int mode) throws Exception(Code)
Write detailed information about a manager.



writeOSState
public static void writeOSState(PrintWriter writer, int mode)(Code)
Write the OS state. Mode 0 will generate HTML. Mode 1 will generate XML.



writePageHeading
public static void writePageHeading(PrintWriter writer, Object[] args, int mode)(Code)



writeProcessorState
protected static void writeProcessorState(PrintWriter writer, ObjectName pName, MBeanServer mBeanServer, int mode) throws Exception(Code)
Write processor state.



writeServerInfo
public static void writeServerInfo(PrintWriter writer, Object[] args, int mode)(Code)



writeVMState
public static void writeVMState(PrintWriter writer, int mode) throws Exception(Code)
Write the VM state. Mode 0 will generate HTML. Mode 1 will generate XML.



writeWrapper
public static void writeWrapper(PrintWriter writer, ObjectName objectName, MBeanServer mBeanServer, int mode) throws Exception(Code)
Write detailed information about a wrapper.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.