org.apache.catalina.manager
public final class HTMLManagerServlet extends ManagerServlet
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
Version: $Revision: 895212 $, $Date: 2010-01-02 16:53:43 +0100 (Sat, 02 Jan 2010) $
See Also: ManagerServlet
Field Summary | |
---|---|
protected static String | APPLICATION_ERROR |
protected static String | APPLICATION_MESSAGE |
protected String | sessionDetailJspPath |
protected String | sessionsListJspPath |
protected static URLEncoder | URL_ENCODER |
Method Summary | |
---|---|
protected String | deployInternal(String config, String path, String war)
Deploy an application for the specified path from the specified
web application archive.
|
protected void | displaySessionDetailPage(HttpServletRequest req, HttpServletResponse resp, String path, String sessionId) |
protected void | displaySessionsListPage(String path, HttpServletRequest req, HttpServletResponse resp) |
void | doGet(HttpServletRequest request, HttpServletResponse response)
Process a GET request for the specified resource.
|
void | doPost(HttpServletRequest request, HttpServletResponse response)
Process a POST request for the specified resource.
|
protected void | doSessions(String path, HttpServletRequest req, HttpServletResponse resp) |
protected String | expireSessions(String path, HttpServletRequest req)
Extract the expiration request parameter
|
protected Comparator | getComparator(String sortBy) |
String | getServletInfo() |
protected Session | getSessionForPathAndId(String path, String id) |
protected Session[] | getSessionsForPath(String path) |
void | init() |
int | invalidateSessions(String path, String[] sessionIds)
Invalidate HttpSessions |
void | list(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 String | reload(String path)
Reload the web application at the specified context path.
|
boolean | removeSessionAttribute(String path, String sessionId, String attributeName)
Removes an attribute from an HttpSession |
String | sessions(String path, int idle)
Display session information and invoke list.
|
String | sessions(String path)
Display session information and invoke list.
|
int | setSessionMaxInactiveInterval(String path, String sessionId, int maxInactiveInterval)
Sets the maximum inactive interval (session timeout) an HttpSession |
String | start(String path)
Start the web application at the specified context path.
|
protected String | stop(String path)
Stop the web application at the specified context path.
|
protected String | undeploy(String path)
Undeploy the web application at the specified context path.
|
Parameters: config URL of the context configuration file to be deployed path Context path of the application to be deployed war URL of the web application archive to be deployed
Returns: message String
Parameters: req resp
Throws: ServletException IOException
Parameters: req resp
Throws: ServletException IOException
Parameters: request The servlet request we are processing response The servlet response we are creating
Throws: IOException if an input/output error occurs ServletException if a servlet-specified error occurs
Parameters: request The servlet request we are processing response The servlet response we are creating
Throws: IOException if an input/output error occurs ServletException if a servlet-specified error occurs
Parameters: req resp
Throws: ServletException IOException
Parameters: path req
See Also: javax.servlet.Servlet#getServletInfo()
See Also: javax.servlet.GenericServlet#init()
Parameters: sessionIds
Returns: number of invalidated sessions
Throws: IOException
Parameters: request The request response The response message a message to display
Parameters: path Context path of the application to be restarted
Returns: message String
Parameters: sessionId attributeName
Returns: true if there was an attribute removed, false otherwise
Throws: IOException
Parameters: path Context path of the application to list session information idle Expire all sessions with idle time ≥ idle for this context
Returns: message String
Parameters: path Context path of the application to list session information
Returns: message String
Parameters: sessionId maxInactiveInterval in seconds
Returns: old value for maxInactiveInterval
Throws: IOException
Parameters: path Context path of the application to be started
Returns: message String
Parameters: path Context path of the application to be stopped
Returns: message String
Parameters: path Context path of the application to be undeployd
Returns: message String