001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017:
018: package org.apache.catalina.manager;
019:
020: public class Constants {
021:
022: public static final String Package = "org.apache.catalina.manager";
023:
024: public static final String HTML_HEADER_SECTION = "<html>\n"
025: + "<head>\n" + "<style>\n"
026: + org.apache.catalina.util.TomcatCSS.TOMCAT_CSS
027: + " table {\n"
028: + " width: 100%;\n"
029: + " }\n"
030: + " td.page-title {\n"
031: + " text-align: center;\n"
032: + " vertical-align: top;\n"
033: + " font-family:sans-serif,Tahoma,Arial;\n"
034: + " font-weight: bold;\n"
035: + " background: white;\n"
036: + " color: black;\n"
037: + " }\n"
038: + " td.title {\n"
039: + " text-align: left;\n"
040: + " vertical-align: top;\n"
041: + " font-family:sans-serif,Tahoma,Arial;\n"
042: + " font-style:italic;\n"
043: + " font-weight: bold;\n"
044: + " background: #D2A41C;\n"
045: + " }\n"
046: + " td.header-left {\n"
047: + " text-align: left;\n"
048: + " vertical-align: top;\n"
049: + " font-family:sans-serif,Tahoma,Arial;\n"
050: + " font-weight: bold;\n"
051: + " background: #FFDC75;\n"
052: + " }\n"
053: + " td.header-center {\n"
054: + " text-align: center;\n"
055: + " vertical-align: top;\n"
056: + " font-family:sans-serif,Tahoma,Arial;\n"
057: + " font-weight: bold;\n"
058: + " background: #FFDC75;\n"
059: + " }\n"
060: + " td.row-left {\n"
061: + " text-align: left;\n"
062: + " vertical-align: middle;\n"
063: + " font-family:sans-serif,Tahoma,Arial;\n"
064: + " color: black;\n"
065: + " }\n"
066: + " td.row-center {\n"
067: + " text-align: center;\n"
068: + " vertical-align: middle;\n"
069: + " font-family:sans-serif,Tahoma,Arial;\n"
070: + " color: black;\n"
071: + " }\n"
072: + " td.row-right {\n"
073: + " text-align: right;\n"
074: + " vertical-align: middle;\n"
075: + " font-family:sans-serif,Tahoma,Arial;\n"
076: + " color: black;\n"
077: + " }\n"
078: + " TH {\n"
079: + " text-align: center;\n"
080: + " vertical-align: top;\n"
081: + " font-family:sans-serif,Tahoma,Arial;\n"
082: + " font-weight: bold;\n"
083: + " background: #FFDC75;\n"
084: + " }\n"
085: + " TD {\n"
086: + " text-align: center;\n"
087: + " vertical-align: middle;\n"
088: + " font-family:sans-serif,Tahoma,Arial;\n"
089: + " color: black;\n" + " }\n" + "</style>\n";
090:
091: public static final String BODY_HEADER_SECTION = "<title>{0}</title>\n"
092: + "</head>\n"
093: + "\n"
094: + "<body bgcolor=\"#FFFFFF\">\n"
095: + "\n"
096: + "<table cellspacing=\"4\" width=\"100%\" border=\"0\">\n"
097: + " <tr>\n"
098: + " <td colspan=\"2\">\n"
099: + " <a href=\"http://www.apache.org/\">\n"
100: + " <img border=\"0\" alt=\"The Apache Software Foundation\" align=\"left\"\n"
101: + " src=\"{0}/images/asf-logo.gif\">\n"
102: + " </a>\n"
103: + " <a href=\"http://tomcat.apache.org/\">\n"
104: + " <img border=\"0\" alt=\"The Tomcat Servlet/JSP Container\"\n"
105: + " align=\"right\" src=\"{0}/images/tomcat.gif\">\n"
106: + " </a>\n"
107: + " </td>\n"
108: + " </tr>\n"
109: + "</table>\n"
110: + "<hr size=\"1\" noshade=\"noshade\">\n"
111: + "<table cellspacing=\"4\" width=\"100%\" border=\"0\">\n"
112: + " <tr>\n"
113: + " <td class=\"page-title\" bordercolor=\"#000000\" "
114: + "align=\"left\" nowrap>\n"
115: + " <font size=\"+2\">{1}</font>\n"
116: + " </td>\n"
117: + " </tr>\n" + "</table>\n" + "<br>\n" + "\n";
118:
119: public static final String MESSAGE_SECTION = "<table border=\"1\" cellspacing=\"0\" cellpadding=\"3\">\n"
120: + " <tr>\n"
121: + " <td class=\"row-left\" width=\"10%\">"
122: + "<small><strong>{0}</strong></small> </td>\n"
123: + " <td class=\"row-left\"><pre>{1}</pre></td>\n"
124: + " </tr>\n" + "</table>\n" + "<br>\n" + "\n";
125:
126: public static final String MANAGER_SECTION = "<table border=\"1\" cellspacing=\"0\" cellpadding=\"3\">\n"
127: + "<tr>\n"
128: + " <td colspan=\"4\" class=\"title\">{0}</td>\n"
129: + "</tr>\n"
130: + " <tr>\n"
131: + " <td class=\"row-left\"><a href=\"{1}\">{2}</a></td>\n"
132: + " <td class=\"row-center\"><a href=\"{3}\">{4}</a></td>\n"
133: + " <td class=\"row-center\"><a href=\"{5}\">{6}</a></td>\n"
134: + " <td class=\"row-right\"><a href=\"{7}\">{8}</a></td>\n"
135: + " </tr>\n" + "</table>\n" + "<br>\n" + "\n";
136:
137: public static final String SERVER_HEADER_SECTION = "<table border=\"1\" cellspacing=\"0\" cellpadding=\"3\">\n"
138: + "<tr>\n"
139: + " <td colspan=\"6\" class=\"title\">{0}</td>\n"
140: + "</tr>\n"
141: + "<tr>\n"
142: + " <td class=\"header-center\"><small>{1}</small></td>\n"
143: + " <td class=\"header-center\"><small>{2}</small></td>\n"
144: + " <td class=\"header-center\"><small>{3}</small></td>\n"
145: + " <td class=\"header-center\"><small>{4}</small></td>\n"
146: + " <td class=\"header-center\"><small>{5}</small></td>\n"
147: + " <td class=\"header-center\"><small>{6}</small></td>\n"
148: + "</tr>\n";
149:
150: public static final String SERVER_ROW_SECTION = "<tr>\n"
151: + " <td class=\"row-center\"><small>{0}</small></td>\n"
152: + " <td class=\"row-center\"><small>{1}</small></td>\n"
153: + " <td class=\"row-center\"><small>{2}</small></td>\n"
154: + " <td class=\"row-center\"><small>{3}</small></td>\n"
155: + " <td class=\"row-center\"><small>{4}</small></td>\n"
156: + " <td class=\"row-center\"><small>{5}</small></td>\n"
157: + "</tr>\n" + "</table>\n" + "<br>\n" + "\n";
158:
159: public static final String HTML_TAIL_SECTION = "<hr size=\"1\" noshade=\"noshade\">\n"
160: + "<center><font size=\"-1\" color=\"#525D76\">\n"
161: + " <em>Copyright © 1999-2005, Apache Software Foundation</em>"
162: + "</font></center>\n" + "\n" + "</body>\n" + "</html>";
163: public static final String CHARSET = "utf-8";
164:
165: public static final String XML_DECLARATION = "<?xml version=\"1.0\" encoding=\""
166: + CHARSET + "\"?>";
167:
168: public static final String XML_STYLE = "<?xml-stylesheet type=\"text/xsl\" href=\"/manager/xform.xsl\" ?>";
169:
170: }
|