From: fhanik Date: Fri, 20 Jul 2007 22:41:17 +0000 (+0000) Subject: missing import X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=fd540ee1af4eefdba07d98cde1ab4c8f5f9f8f30;p=tomcat7.0 missing import git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@558184 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/manager/host/HTMLHostManagerServlet.java b/java/org/apache/catalina/manager/host/HTMLHostManagerServlet.java index e6a8ee5d3..fad0657e3 100644 --- a/java/org/apache/catalina/manager/host/HTMLHostManagerServlet.java +++ b/java/org/apache/catalina/manager/host/HTMLHostManagerServlet.java @@ -5,9 +5,9 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -33,11 +33,11 @@ import javax.servlet.http.HttpServletResponse; import org.apache.catalina.Container; import org.apache.catalina.Host; import org.apache.catalina.util.ServerInfo; - +import org.apache.catalina.util.RequestUtil; /** * Servlet that enables remote management of the virtual hosts deployed * on the server. Normally, this functionality will be protected by a security -* constraint in the web application deployment descriptor. However, +* constraint in the web application deployment descriptor. However, * this requirement can be relaxed during testing. *

* The difference between the HostManagerServlet and this @@ -78,7 +78,7 @@ public final class HTMLHostManagerServlet extends HostManagerServlet { String command = request.getPathInfo(); String name = request.getParameter("name"); - + // Prepare our output writer to generate the response message response.setContentType("text/html; charset=" + Constants.CHARSET); @@ -102,7 +102,7 @@ public final class HTMLHostManagerServlet extends HostManagerServlet { list(request, response, message); } - + /** * Add a host using the specified parameters. * @@ -135,7 +135,7 @@ public final class HTMLHostManagerServlet extends HostManagerServlet { return stringWriter.toString(); } - + /** * Start the host with the specified name. * @@ -151,7 +151,7 @@ public final class HTMLHostManagerServlet extends HostManagerServlet { return stringWriter.toString(); } - + /** * Stop the host with the specified name. * @@ -167,7 +167,7 @@ public final class HTMLHostManagerServlet extends HostManagerServlet { return stringWriter.toString(); } - + /** * Render a HTML list of the currently active Contexts in our virtual host, * and memory and server status information. @@ -304,7 +304,7 @@ public final class HTMLHostManagerServlet extends HostManagerServlet { args[4] = sm.getString("htmlHostManagerServlet.addAliases"); args[5] = sm.getString("htmlHostManagerServlet.addAppBase"); writer.print(MessageFormat.format(ADD_SECTION_START, args)); - + args = new Object[3]; args[0] = sm.getString("htmlHostManagerServlet.addAutoDeploy"); args[1] = "autoDeploy"; @@ -335,7 +335,7 @@ public final class HTMLHostManagerServlet extends HostManagerServlet { args[1] = "manager"; args[2] = "checked"; writer.print(MessageFormat.format(ADD_SECTION_BOOLEAN, args)); - + args = new Object[1]; args[0] = sm.getString("htmlHostManagerServlet.addButton"); writer.print(MessageFormat.format(ADD_SECTION_END, args)); @@ -370,7 +370,7 @@ public final class HTMLHostManagerServlet extends HostManagerServlet { writer.close(); } - + // ------------------------------------------------------ Private Constants // These HTML sections are broken in relatively small sections, because of @@ -452,7 +452,7 @@ public final class HTMLHostManagerServlet extends HostManagerServlet { " \n" + " \n" + "\n" ; - + private static final String ADD_SECTION_BOOLEAN = "\n" + " \n" + @@ -462,7 +462,7 @@ public final class HTMLHostManagerServlet extends HostManagerServlet { " \n" + " \n" + "\n" ; - + private static final String ADD_SECTION_END = "\n" + " \n" +