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