Java Doc for HTMLManagerServlet.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) 


org.apache.catalina.manager.ManagerServlet
   org.apache.catalina.manager.HTMLManagerServlet

HTMLManagerServlet
final public class HTMLManagerServlet extends ManagerServlet (Code)
Servlet that enables remote management of the web applications deployed within the same virtual host as this web application is. Normally, this functionality will be protected by a security constraint in the web application deployment descriptor. However, this requirement can be relaxed during testing.

The difference between the ManagerServlet and this Servlet is that this Servlet prints out a HTML interface which makes it easier to administrate.

However if you use a software that parses the output of ManagerServlet you won't be able to upgrade to this Servlet since the output are not in the same format ar from ManagerServlet
author:
   Bip Thelin
author:
   Malcolm Edgar
author:
   Glenn L. Nielsen
version:
   $Revision: 547077 $, $Date: 2007-06-14 03:55:09 +0200 (jeu., 14 juin 2007) $
See Also:   ManagerServlet



Field Summary
final protected static  StringAPPLICATION_ERROR
    
final protected static  StringAPPLICATION_MESSAGE
    
protected  StringsessionDetailJspPath
    
protected  StringsessionsListJspPath
    


Method Summary
protected  StringdeployInternal(String config, String path, String war)
     Deploy an application for the specified path from the specified web application archive.
protected  voiddisplaySessionDetailPage(HttpServletRequest req, HttpServletResponse resp, String path, String sessionId)
    
protected  voiddisplaySessionsListPage(String path, HttpServletRequest req, HttpServletResponse resp)
    
public  voiddoGet(HttpServletRequest request, HttpServletResponse response)
     Process a GET request for the specified resource.
public  voiddoPost(HttpServletRequest request, HttpServletResponse response)
     Process a POST request for the specified resource.
protected  voiddoSessions(String path, HttpServletRequest req, HttpServletResponse resp)
    
protected  StringexpireSessions(String path, HttpServletRequest req)
    
protected  ComparatorgetComparator(String sortBy)
    
public  StringgetServletInfo()
    
protected  SessiongetSessionForPathAndId(String path, String id)
    
protected  Session[]getSessionsForPath(String path)
    
public  voidinit()
    
public  intinvalidateSessions(String path, String[] sessionIds)
    
public  voidlist(HttpServletRequest request, HttpServletResponse response, String message)
     Render a HTML list of the currently active Contexts in our virtual host, and memory and server status information.
protected  Stringreload(String path)
     Reload the web application at the specified context path.
public  booleanremoveSessionAttribute(String path, String sessionId, String attributeName)
    
public  Stringsessions(String path, int idle)
     Display session information and invoke list.
public  Stringsessions(String path)
     Display session information and invoke list.
public  intsetSessionMaxInactiveInterval(String path, String sessionId, int maxInactiveInterval)
    
public  Stringstart(String path)
     Start the web application at the specified context path.
protected  Stringstop(String path)
     Stop the web application at the specified context path.
protected  Stringundeploy(String path)
     Undeploy the web application at the specified context path.

Field Detail
APPLICATION_ERROR
final protected static String APPLICATION_ERROR(Code)



APPLICATION_MESSAGE
final protected static String APPLICATION_MESSAGE(Code)



sessionDetailJspPath
protected String sessionDetailJspPath(Code)



sessionsListJspPath
protected String sessionsListJspPath(Code)





Method Detail
deployInternal
protected String deployInternal(String config, String path, String war)(Code)
Deploy an application for the specified path from the specified web application archive.
Parameters:
  config - URL of the context configuration file to be deployed
Parameters:
  path - Context path of the application to be deployed
Parameters:
  war - URL of the web application archive to be deployed message String



displaySessionDetailPage
protected void displaySessionDetailPage(HttpServletRequest req, HttpServletResponse resp, String path, String sessionId) throws ServletException, IOException(Code)

Parameters:
  req -
Parameters:
  resp -
throws:
  ServletException -
throws:
  IOException -



displaySessionsListPage
protected void displaySessionsListPage(String path, HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)

Parameters:
  req -
Parameters:
  resp -
throws:
  ServletException -
throws:
  IOException -



doGet
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(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



doPost
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)
Process a POST 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



doSessions
protected void doSessions(String path, HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)

Parameters:
  req -
Parameters:
  resp -
throws:
  ServletException -
throws:
  IOException -



expireSessions
protected String expireSessions(String path, HttpServletRequest req)(Code)
Extract the expiration request parameter
Parameters:
  path -
Parameters:
  req -



getComparator
protected Comparator getComparator(String sortBy)(Code)



getServletInfo
public String getServletInfo()(Code)

See Also:   javax.servlet.Servlet.getServletInfo



getSessionForPathAndId
protected Session getSessionForPathAndId(String path, String id) throws IOException(Code)



getSessionsForPath
protected Session[] getSessionsForPath(String path)(Code)



init
public void init() throws ServletException(Code)

See Also:   javax.servlet.GenericServlet.init



invalidateSessions
public int invalidateSessions(String path, String[] sessionIds) throws IOException(Code)
Invalidate HttpSessions
Parameters:
  sessionIds - number of invalidated sessions
throws:
  IOException -



list
public void list(HttpServletRequest request, HttpServletResponse response, String message) throws IOException(Code)
Render a HTML list of the currently active Contexts in our virtual host, and memory and server status information.
Parameters:
  request - The request
Parameters:
  response - The response
Parameters:
  message - a message to display



reload
protected String reload(String path)(Code)
Reload the web application at the specified context path.
See Also:   ManagerServlet.reload(PrintWriterString)
Parameters:
  path - Context path of the application to be restarted message String



removeSessionAttribute
public boolean removeSessionAttribute(String path, String sessionId, String attributeName) throws IOException(Code)
Removes an attribute from an HttpSession
Parameters:
  sessionId -
Parameters:
  attributeName - true if there was an attribute removed, false otherwise
throws:
  IOException -



sessions
public String sessions(String path, int idle)(Code)
Display session information and invoke list.
See Also:   ManagerServlet.sessions(PrintWriterStringint)
Parameters:
  path - Context path of the application to list session information
Parameters:
  idle - Expire all sessions with idle time ≥ idle for this context message String



sessions
public String sessions(String path)(Code)
Display session information and invoke list.
See Also:   ManagerServlet.sessions(PrintWriterString)
Parameters:
  path - Context path of the application to list session information message String



setSessionMaxInactiveInterval
public int setSessionMaxInactiveInterval(String path, String sessionId, int maxInactiveInterval) throws IOException(Code)
Sets the maximum inactive interval (session timeout) an HttpSession
Parameters:
  sessionId -
Parameters:
  maxInactiveInterval - in seconds old value for maxInactiveInterval
throws:
  IOException -



start
public String start(String path)(Code)
Start the web application at the specified context path.
See Also:   ManagerServlet.start(PrintWriterString)
Parameters:
  path - Context path of the application to be started message String



stop
protected String stop(String path)(Code)
Stop the web application at the specified context path.
See Also:   ManagerServlet.stop(PrintWriterString)
Parameters:
  path - Context path of the application to be stopped message String



undeploy
protected String undeploy(String path)(Code)
Undeploy the web application at the specified context path.
See Also:   ManagerServlet.undeploy(PrintWriterString)
Parameters:
  path - Context path of the application to be undeployd message String



Fields inherited from org.apache.catalina.manager.ManagerServlet
protected File appBase(Code)(Java Doc)
protected File configBase(Code)(Java Doc)
protected Context context(Code)(Java Doc)
protected File contextDescriptors(Code)(Java Doc)
protected int debug(Code)(Java Doc)
protected File deployed(Code)(Java Doc)
protected javax.naming.Context global(Code)(Java Doc)
protected Host host(Code)(Java Doc)
protected MBeanServer mBeanServer(Code)(Java Doc)
protected ObjectName oname(Code)(Java Doc)
protected static StringManager sm(Code)(Java Doc)
protected File versioned(Code)(Java Doc)
protected Wrapper wrapper(Code)(Java Doc)

Methods inherited from org.apache.catalina.manager.ManagerServlet
protected void addServiced(String name) throws Exception(Code)(Java Doc)
protected void check(String name) throws Exception(Code)(Java Doc)
public static boolean copy(File src, File dest)(Code)(Java Doc)
public static boolean copyInternal(File src, File dest, byte[] buf)(Code)(Java Doc)
protected synchronized void deploy(PrintWriter writer, String path, String tag, boolean update, HttpServletRequest request)(Code)(Java Doc)
protected void deploy(PrintWriter writer, String path, String tag)(Code)(Java Doc)
protected void deploy(PrintWriter writer, String config, String path, String war, boolean update)(Code)(Java Doc)
public void destroy()(Code)(Java Doc)
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)(Java Doc)
public void doPut(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)(Java Doc)
protected void expireSessions(PrintWriter writer, String path, HttpServletRequest req)(Code)(Java Doc)
protected File getAppBase()(Code)(Java Doc)
protected String getConfigFile(String path)(Code)(Java Doc)
protected String getDocBase(String path)(Code)(Java Doc)
public Wrapper getWrapper()(Code)(Java Doc)
public void init() throws ServletException(Code)(Java Doc)
protected boolean isDeployed(String name) throws Exception(Code)(Java Doc)
protected boolean isServiced(String name) throws Exception(Code)(Java Doc)
protected void list(PrintWriter writer)(Code)(Java Doc)
protected void printResources(PrintWriter writer, String prefix, javax.naming.Context namingContext, String type, Class clazz)(Code)(Java Doc)
protected void reload(PrintWriter writer, String path)(Code)(Java Doc)
protected void removeServiced(String name) throws Exception(Code)(Java Doc)
protected void resources(PrintWriter writer, String type)(Code)(Java Doc)
protected void roles(PrintWriter writer)(Code)(Java Doc)
protected synchronized void save(PrintWriter writer, String path)(Code)(Java Doc)
protected void serverinfo(PrintWriter writer)(Code)(Java Doc)
protected void sessions(PrintWriter writer, String path, int idle)(Code)(Java Doc)
protected void sessions(PrintWriter writer, String path)(Code)(Java Doc)
public void setWrapper(Wrapper wrapper)(Code)(Java Doc)
protected void start(PrintWriter writer, String path)(Code)(Java Doc)
protected void stop(PrintWriter writer, String path)(Code)(Java Doc)
protected void undeploy(PrintWriter writer, String path)(Code)(Java Doc)
protected void undeployDir(File dir)(Code)(Java Doc)
protected void uploadWar(HttpServletRequest request, File war) throws IOException(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.