The difference between the HostManagerServlet 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 HostManagerServlet you won't be able to upgrade
to this Servlet since the output are not in the same format as from HostManagerServlet
org.apache.catalina.manager.ManagerServlet
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | Returns: outputThe Servlet request request, String Host name name, StringManager StringManager for the client's locale smClient)Add a host using the specified parameters. |
| 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. |
| public void | list(HttpServletRequest
The request request, HttpServletResponse The response response, String a message to display message, StringManager StringManager for the client's locale smClient)Render an HTML list of the currently active Contexts in our virtual host, and memory and server status information. |
| protected String | Returns: outputi18n resources localized for the client smClient)Persist the current configuration to server.xml. |
| protected String | Returns: outputHost name name, StringManager StringManager for the client's locale smClient)Remove the specified host. |
| protected String | Returns: outputHost name name, StringManager StringManager for the client's locale smClient)Start the host with the specified name. |
| protected String | Returns: outputHost name name, StringManager StringManager for the client's locale smClient)Stop the host with the specified name. |
| ADD_SECTION_BOOLEAN | back to summary |
|---|---|
| private static final String ADD_SECTION_BOOLEAN | |
| ADD_SECTION_END | back to summary |
|---|---|
| private static final String ADD_SECTION_END | |
| ADD_SECTION_START | back to summary |
|---|---|
| private static final String ADD_SECTION_START | |
| HOSTS_HEADER_SECTION | back to summary |
|---|---|
| private static final String HOSTS_HEADER_SECTION | |
| HOSTS_ROW_BUTTON_SECTION | back to summary |
|---|---|
| private static final String HOSTS_ROW_BUTTON_SECTION | |
| HOSTS_ROW_DETAILS_SECTION | back to summary |
|---|---|
| private static final String HOSTS_ROW_DETAILS_SECTION | |
| MANAGER_HOST_ROW_BUTTON_SECTION | back to summary |
|---|---|
| private static final String MANAGER_HOST_ROW_BUTTON_SECTION | |
| PERSIST_SECTION | back to summary |
|---|---|
| private static final String PERSIST_SECTION | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| HTMLHostManagerServlet | back to summary |
|---|---|
| public HTMLHostManagerServlet() | |
| add | back to summary |
|---|---|
| protected String add(HttpServletRequest request, String name, StringManager smClient) Add a host using the specified parameters.
| |
| 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 ServletException, IOException Overrides jakarta. Process a POST request for the specified resource.
| |
| list | back to summary |
|---|---|
| public 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.
| |
| persist | back to summary |
|---|---|
| protected String persist(StringManager smClient) Persist the current configuration to server.xml.
| |
| remove | back to summary |
|---|---|
| protected String remove(String name, StringManager smClient) Remove the specified host.
| |
| start | back to summary |
|---|---|
| protected String start(String name, StringManager smClient) Start the host with the specified name.
| |
| stop | back to summary |
|---|---|
| protected String stop(String name, StringManager smClient) Stop the host with the specified name.
| |