KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > catalina > manager > Constants


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17
18
19 package org.apache.catalina.manager;
20
21
22 public class Constants {
23
24     public static final String JavaDoc Package = "org.apache.catalina.manager";
25
26     public static final String JavaDoc HTML_HEADER_SECTION =
27         "<html>\n" +
28         "<head>\n" +
29         "<style>\n" +
30         org.apache.catalina.util.TomcatCSS.TOMCAT_CSS +
31         " table {\n" +
32         " width: 100%;\n" +
33         " }\n" +
34         " td.page-title {\n" +
35         " text-align: center;\n" +
36         " vertical-align: top;\n" +
37         " font-family:sans-serif,Tahoma,Arial;\n" +
38         " font-weight: bold;\n" +
39         " background: white;\n" +
40         " color: black;\n" +
41         " }\n" +
42         " td.title {\n" +
43         " text-align: left;\n" +
44         " vertical-align: top;\n" +
45         " font-family:sans-serif,Tahoma,Arial;\n" +
46         " font-style:italic;\n" +
47         " font-weight: bold;\n" +
48         " background: #D2A41C;\n" +
49         " }\n" +
50         " td.header-left {\n" +
51         " text-align: left;\n" +
52         " vertical-align: top;\n" +
53         " font-family:sans-serif,Tahoma,Arial;\n" +
54         " font-weight: bold;\n" +
55         " background: #FFDC75;\n" +
56         " }\n" +
57         " td.header-center {\n" +
58         " text-align: center;\n" +
59         " vertical-align: top;\n" +
60         " font-family:sans-serif,Tahoma,Arial;\n" +
61         " font-weight: bold;\n" +
62         " background: #FFDC75;\n" +
63         " }\n" +
64         " td.row-left {\n" +
65         " text-align: left;\n" +
66         " vertical-align: middle;\n" +
67         " font-family:sans-serif,Tahoma,Arial;\n" +
68         " color: black;\n" +
69         " }\n" +
70         " td.row-center {\n" +
71         " text-align: center;\n" +
72         " vertical-align: middle;\n" +
73         " font-family:sans-serif,Tahoma,Arial;\n" +
74         " color: black;\n" +
75         " }\n" +
76         " td.row-right {\n" +
77         " text-align: right;\n" +
78         " vertical-align: middle;\n" +
79         " font-family:sans-serif,Tahoma,Arial;\n" +
80         " color: black;\n" +
81         " }\n" +
82         " TH {\n" +
83         " text-align: center;\n" +
84         " vertical-align: top;\n" +
85         " font-family:sans-serif,Tahoma,Arial;\n" +
86         " font-weight: bold;\n" +
87         " background: #FFDC75;\n" +
88         " }\n" +
89         " TD {\n" +
90         " text-align: center;\n" +
91         " vertical-align: middle;\n" +
92         " font-family:sans-serif,Tahoma,Arial;\n" +
93         " color: black;\n" +
94         " }\n" +
95         "</style>\n";
96
97     public static final String JavaDoc BODY_HEADER_SECTION =
98         "<title>{0}</title>\n" +
99         "</head>\n" +
100         "\n" +
101         "<body bgcolor=\"#FFFFFF\">\n" +
102         "\n" +
103         "<table cellspacing=\"4\" width=\"100%\" border=\"0\">\n" +
104         " <tr>\n" +
105         " <td colspan=\"2\">\n" +
106         " <a HREF=\"http://www.apache.org/\">\n" +
107         " <img border=\"0\" alt=\"The Apache Software Foundation\" align=\"left\"\n" +
108         " SRC=\"{0}/images/asf-logo.gif\">\n" +
109         " </a>\n" +
110         " <a HREF=\"http://tomcat.apache.org/\">\n" +
111         " <img border=\"0\" alt=\"The Tomcat Servlet/JSP Container\"\n" +
112         " align=\"right\" SRC=\"{0}/images/tomcat.gif\">\n" +
113         " </a>\n" +
114         " </td>\n" +
115         " </tr>\n" +
116         "</table>\n" +
117         "<hr size=\"1\" noshade=\"noshade\">\n" +
118         "<table cellspacing=\"4\" width=\"100%\" border=\"0\">\n" +
119         " <tr>\n" +
120         " <td class=\"page-title\" bordercolor=\"#000000\" " +
121         "align=\"left\" nowrap>\n" +
122         " <font size=\"+2\">{1}</font>\n" +
123         " </td>\n" +
124         " </tr>\n" +
125         "</table>\n" +
126         "<br>\n" +
127         "\n";
128
129     public static final String JavaDoc MESSAGE_SECTION =
130         "<table border=\"1\" cellspacing=\"0\" cellpadding=\"3\">\n" +
131         " <tr>\n" +
132         " <td class=\"row-left\" width=\"10%\">" +
133         "<small><strong>{0}</strong></small>&nbsp;</td>\n" +
134         " <td class=\"row-left\"><pre>{1}</pre></td>\n" +
135         " </tr>\n" +
136         "</table>\n" +
137         "<br>\n" +
138         "\n";
139
140     public static final String JavaDoc MANAGER_SECTION =
141         "<table border=\"1\" cellspacing=\"0\" cellpadding=\"3\">\n" +
142         "<tr>\n" +
143         " <td colspan=\"4\" class=\"title\">{0}</td>\n" +
144         "</tr>\n" +
145         " <tr>\n" +
146         " <td class=\"row-left\"><a HREF=\"{1}\">{2}</a></td>\n" +
147         " <td class=\"row-center\"><a HREF=\"{3}\">{4}</a></td>\n" +
148         " <td class=\"row-center\"><a HREF=\"{5}\">{6}</a></td>\n" +
149         " <td class=\"row-right\"><a HREF=\"{7}\">{8}</a></td>\n" +
150         " </tr>\n" +
151         "</table>\n" +
152         "<br>\n" +
153         "\n";
154
155     public static final String JavaDoc SERVER_HEADER_SECTION =
156         "<table border=\"1\" cellspacing=\"0\" cellpadding=\"3\">\n" +
157         "<tr>\n" +
158         " <td colspan=\"6\" class=\"title\">{0}</td>\n" +
159         "</tr>\n" +
160         "<tr>\n" +
161         " <td class=\"header-center\"><small>{1}</small></td>\n" +
162         " <td class=\"header-center\"><small>{2}</small></td>\n" +
163         " <td class=\"header-center\"><small>{3}</small></td>\n" +
164         " <td class=\"header-center\"><small>{4}</small></td>\n" +
165         " <td class=\"header-center\"><small>{5}</small></td>\n" +
166         " <td class=\"header-center\"><small>{6}</small></td>\n" +
167         "</tr>\n";
168
169     public static final String JavaDoc SERVER_ROW_SECTION =
170         "<tr>\n" +
171         " <td class=\"row-center\"><small>{0}</small></td>\n" +
172         " <td class=\"row-center\"><small>{1}</small></td>\n" +
173         " <td class=\"row-center\"><small>{2}</small></td>\n" +
174         " <td class=\"row-center\"><small>{3}</small></td>\n" +
175         " <td class=\"row-center\"><small>{4}</small></td>\n" +
176         " <td class=\"row-center\"><small>{5}</small></td>\n" +
177         "</tr>\n" +
178         "</table>\n" +
179         "<br>\n" +
180         "\n";
181
182     public static final String JavaDoc HTML_TAIL_SECTION =
183         "<hr size=\"1\" noshade=\"noshade\">\n" +
184         "<center><font size=\"-1\" color=\"#525D76\">\n" +
185         " <em>Copyright &copy; 1999-2005, Apache Software Foundation</em>" +
186         "</font></center>\n" +
187         "\n" +
188         "</body>\n" +
189         "</html>";
190     public static final String JavaDoc CHARSET="utf-8";
191
192     public static final String JavaDoc XML_DECLARATION =
193         "<?xml version=\"1.0\" encoding=\""+CHARSET+"\"?>";
194         
195     public static final String JavaDoc XML_STYLE =
196         "<?xml-stylesheet type=\"text/xsl\" HREF=\"/manager/xform.xsl\" ?>";
197
198 }
199
200
Popular Tags