| 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 |
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) | public void | doGet(HttpServletRequest request, HttpServletResponse response) Process a GET request for the specified resource. | public 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) | protected Comparator | getComparator(String sortBy) | public String | getServletInfo() | protected Session | getSessionForPathAndId(String path, String id) | protected Session[] | getSessionsForPath(String path) | public void | init() | public int | invalidateSessions(String path, String[] sessionIds) | public 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. | public boolean | removeSessionAttribute(String path, String sessionId, String attributeName) | public String | sessions(String path, int idle) Display session information and invoke list. | public String | sessions(String path) Display session information and invoke list. | public int | setSessionMaxInactiveInterval(String path, String sessionId, int maxInactiveInterval) | public 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. |
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) | | |
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 |
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 |
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 |
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 - |
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)
|
|
|