The difference between the ManagerServlet and this Servlet is that this Servlet prints out an 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
ManagerServlet
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final String | |
| pack-priv static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| pack-priv static final String | |
| pack-priv static final String | |
| pack-priv static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final long | |
| pack-priv static final String | |
| pack-priv static final String | |
| private boolean | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static <U extends Comparable | |
| protected String | Returns: message StringURL of the context configuration file to be deployed config, ContextName Name of the application to be deployed cn, String URL of the web application archive to be deployed war, StringManager internationalized strings smClient)Deploy an application for the specified path from the specified web application archive. |
| protected void | displaySessionDetailPage(HttpServletRequest
The Servlet request req, HttpServletResponse The Servlet response resp, ContextName Name of the application for which the sessions will be listed cn, String the session id sessionId, StringManager StringManager for the client's locale smClient)Display session details. |
| protected void | displaySessionsListPage(ContextName
Name of the application for which the sessions will be listed cn, HttpServletRequest The Servlet request req, HttpServletResponse The Servlet response resp, StringManager StringManager for the client's locale smClient)List session. |
| public void | doGet(HttpServletRequest
The servlet request we are processing request, HttpServletResponse The servlet response we are creating response)Overrides org. Process a GET request for the specified resource. |
| public void | doPost(HttpServletRequest
The servlet request we are processing request, HttpServletResponse The servlet response we are creating response)Overrides jakarta. Process a POST request for the specified resource. |
| protected void | doSessions(ContextName
Name of the application for the sessions operation cn, HttpServletRequest The Servlet request req, HttpServletResponse The Servlet response resp, StringManager StringManager for the client's locale smClient)Handle session operations. |
| protected String | Returns: message stringName of the application from which to expire sessions cn, HttpServletRequest The Servlet request req, StringManager StringManager for the client's locale smClient)Extract the expiration request parameter |
| protected String | Returns: message StringStringManager for the client's locale smClient)Find potential memory leaks caused by web application reload. |
| protected Comparator | |
| public String | getServletInfo()
Overrides jakarta. Implements jakarta. Returns information about the servlet, such as author, version, and copyright. |
| protected Session | |
| protected List | |
| public void | |
| protected int | Returns: number of invalidated sessionsName of the application for which sessions are to be invalidated cn, String[] the session ids of the sessions sessionIds, StringManager StringManager for the client's locale smClient)Invalidate specified sessions. |
| protected void | list(HttpServletRequest
The request request, HttpServletResponse The response response, String a message to display message, StringManager internationalized strings smClient)Render an HTML list of the currently active Contexts in our virtual host, and memory and server status information. |
| protected String | Returns: message StringName of the application to be restarted cn, StringManager StringManager for the client's locale smClient)Reload the web application at the specified context path. |
| protected boolean | Returns: true if there was an attribute removed, false otherwiseName of the application hosting the session from which the attribute is to be removed cn, String the session id sessionId, String the attribute name attributeName, StringManager StringManager for the client's locale smClient)Removes an attribute from an HttpSession |
| protected String | Returns: message StringName of the application to list session information cn, int Expire all sessions with idle time ≥ idle for this context idle, StringManager StringManager for the client's locale smClient)Display session information and invoke list. |
| protected void | |
| protected void | sslConnectorCiphers(HttpServletRequest request, HttpServletResponse response, StringManager smClient)
|
| protected void | sslConnectorTrustedCerts(HttpServletRequest request, HttpServletResponse response, StringManager smClient)
|
| protected String | |
| protected String | Returns: message StringName of the application to be started cn, StringManager StringManager for the client's locale smClient)Start the web application at the specified context path. |
| protected String | Returns: message StringName of the application to be stopped cn, StringManager StringManager for the client's locale smClient)Stop the web application at the specified context path. |
| protected String | Returns: message StringName of the application to be undeployed cn, StringManager StringManager for the client's locale smClient)Undeploy the web application at the specified context path. |
| protected String |
| APPLICATION_ERROR | back to summary |
|---|---|
| pack-priv static final String APPLICATION_ERROR | |
| APPLICATION_MESSAGE | back to summary |
|---|---|
| pack-priv static final String APPLICATION_MESSAGE | |
| APPS_HEADER_SECTION | back to summary |
|---|---|
| private static final String APPS_HEADER_SECTION | |
| APPS_ROW_DETAILS_SECTION | back to summary |
|---|---|
| private static final String APPS_ROW_DETAILS_SECTION | |
| CONFIG_SECTION | back to summary |
|---|---|
| private static final String CONFIG_SECTION | |
| connectorCertsJspPath | back to summary |
|---|---|
| pack-priv static final String connectorCertsJspPath | |
| connectorCiphersJspPath | back to summary |
|---|---|
| pack-priv static final String connectorCiphersJspPath | |
| connectorTrustedCertsJspPath | back to summary |
|---|---|
| pack-priv static final String connectorTrustedCertsJspPath | |
| DEPLOY_SECTION | back to summary |
|---|---|
| private static final String DEPLOY_SECTION | |
| DIAGNOSTICS_SECTION | back to summary |
|---|---|
| private static final String DIAGNOSTICS_SECTION | |
| MANAGER_APP_ROW_BUTTON_SECTION | back to summary |
|---|---|
| private static final String MANAGER_APP_ROW_BUTTON_SECTION | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| sessionDetailJspPath | back to summary |
|---|---|
| pack-priv static final String sessionDetailJspPath | |
| sessionsListJspPath | back to summary |
|---|---|
| pack-priv static final String sessionsListJspPath | |
| showProxySessions | back to summary |
|---|---|
| private boolean showProxySessions | |
| STARTED_DEPLOYED_APPS_ROW_BUTTON_SECTION | back to summary |
|---|---|
| private static final String STARTED_DEPLOYED_APPS_ROW_BUTTON_SECTION | |
| STARTED_NONDEPLOYED_APPS_ROW_BUTTON_SECTION | back to summary |
|---|---|
| private static final String STARTED_NONDEPLOYED_APPS_ROW_BUTTON_SECTION | |
| STOPPED_DEPLOYED_APPS_ROW_BUTTON_SECTION | back to summary |
|---|---|
| private static final String STOPPED_DEPLOYED_APPS_ROW_BUTTON_SECTION | |
| STOPPED_NONDEPLOYED_APPS_ROW_BUTTON_SECTION | back to summary |
|---|---|
| private static final String STOPPED_NONDEPLOYED_APPS_ROW_BUTTON_SECTION | |
| UPLOAD_SECTION | back to summary |
|---|---|
| private static final String UPLOAD_SECTION | |
| HTMLManagerServlet | back to summary |
|---|---|
| public HTMLManagerServlet() | |
| comparingNullable | back to summary |
|---|---|
| private static <U extends Comparable | |
| deployInternal | back to summary |
|---|---|
| protected String deployInternal(String config, ContextName cn, String war, StringManager smClient) Deploy an application for the specified path from the specified web application archive.
| |
| displaySessionDetailPage | back to summary |
|---|---|
| protected void displaySessionDetailPage(HttpServletRequest req, HttpServletResponse resp, ContextName cn, String sessionId, StringManager smClient) throws ServletException, IOException Display session details.
| |
| displaySessionsListPage | back to summary |
|---|---|
| protected void displaySessionsListPage(ContextName cn, HttpServletRequest req, HttpServletResponse resp, StringManager smClient) throws ServletException, IOException List session.
| |
| doGet | back to summary |
|---|---|
| public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException Overrides org. Process a GET request for the specified resource.
| |
| doPost | back to summary |
|---|---|
| public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException Overrides jakarta. Process a POST request for the specified resource.
| |
| doSessions | back to summary |
|---|---|
| protected void doSessions(ContextName cn, HttpServletRequest req, HttpServletResponse resp, StringManager smClient) throws ServletException, IOException Handle session operations.
| |
| expireSessions | back to summary |
|---|---|
| protected String expireSessions(ContextName cn, HttpServletRequest req, StringManager smClient) Extract the expiration request parameter
| |
| findleaks | back to summary |
|---|---|
| protected String findleaks(StringManager smClient) Find potential memory leaks caused by web application reload.
| |
| getComparator | back to summary |
|---|---|
| protected Comparator | |
| getServletInfo | back to summary |
|---|---|
| public String getServletInfo() Overrides jakarta. Implements jakarta. Doc from jakarta. Returns information about the servlet, such as author, version, and copyright. By default, this method returns an
empty string. Override this method to have it return a meaningful value. See
| |
| getSessionForNameAndId | back to summary |
|---|---|
| protected Session getSessionForNameAndId(ContextName cn, String id, StringManager smClient) | |
| getSessionsForName | back to summary |
|---|---|
| protected List | |
| init | back to summary |
|---|---|
| public void init() throws ServletException Overrides org. Doc from org. Initialize this servlet.
| |
| invalidateSessions | back to summary |
|---|---|
| protected int invalidateSessions(ContextName cn, String[] sessionIds, StringManager smClient) Invalidate specified sessions.
| |
| list | back to summary |
|---|---|
| protected void list(HttpServletRequest request, HttpServletResponse response, String message, StringManager smClient) throws IOException Render an HTML list of the currently active Contexts in our virtual host, and memory and server status information.
| |
| reload | back to summary |
|---|---|
| protected String reload(ContextName cn, StringManager smClient) Reload the web application at the specified context path.
| |
| removeSessionAttribute | back to summary |
|---|---|
| protected boolean removeSessionAttribute(ContextName cn, String sessionId, String attributeName, StringManager smClient) Removes an attribute from an HttpSession
| |
| sessions | back to summary |
|---|---|
| protected String sessions(ContextName cn, int idle, StringManager smClient) Display session information and invoke list.
| |
| sslConnectorCerts | back to summary |
|---|---|
| protected void sslConnectorCerts(HttpServletRequest request, HttpServletResponse response, StringManager smClient) throws ServletException, IOException | |
| sslConnectorCiphers | back to summary |
|---|---|
| protected void sslConnectorCiphers(HttpServletRequest request, HttpServletResponse response, StringManager smClient) throws ServletException, IOException | |
| sslConnectorTrustedCerts | back to summary |
|---|---|
| protected void sslConnectorTrustedCerts(HttpServletRequest request, HttpServletResponse response, StringManager smClient) throws ServletException, IOException | |
| sslReload | back to summary |
|---|---|
| protected String sslReload(String tlsHostName, StringManager smClient) | |
| start | back to summary |
|---|---|
| protected String start(ContextName cn, StringManager smClient) Start the web application at the specified context path.
| |
| stop | back to summary |
|---|---|
| protected String stop(ContextName cn, StringManager smClient) Stop the web application at the specified context path.
| |
| undeploy | back to summary |
|---|---|
| protected String undeploy(ContextName cn, StringManager smClient) Undeploy the web application at the specified context path.
| |
| upload | back to summary |
|---|---|
| protected String upload(HttpServletRequest request, StringManager smClient) | |