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