001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: package org.netbeans.modules.web.monitor.data;
043:
044: public class Constants {
045:
046: public static class Files {
047:
048: public final static String log = "log"; //NOI18N
049: public final static String client = "client.data"; //NOI18N
050: public final static String request = "request.data"; //NOI18N
051: public final static String session = "session.data"; //NOI18N
052: public final static String cookies = "cookies.data"; //NOI18N
053: public final static String servletProps = "environ.data"; //NOI18N
054: public final static String all = "all.data"; //NOI18N
055: public final static String replay = "saved.obj"; //NOI18N
056:
057: public final static String monitor = "monitor"; //NOI18N
058: public final static String save = "save"; //NOI18N
059: public final static String current = "current"; //NOI18N
060: public final static String blank = "blank"; //NOI18N
061: public final static String getall = "getall"; //NOI18N
062: public final static String delete = "delete"; //NOI18N
063: }
064:
065: public static class Comm {
066: public final static String ACK = "ACK"; //NOI18N
067: public final static String END = "END"; //NOI18N
068: public final static String ERROR = "ERROR"; //NOI18N
069: public final static String ATT = "bvhE12xSa"; //NOI18N
070: }
071:
072: public static class Labels {
073:
074: public final static String id = "id"; //NOI18N
075: public final static String uri = "uri"; //NOI18N
076: public final static String invoker = "invoker"; //NOI18N
077: public final static String resend = "resend_ffj"; //NOI18N
078: public final static String current = "current_ffj"; //NOI18N
079: public final static String port = "port"; //NOI18N
080: }
081:
082: public static class Context {
083: public final static String monitorDir = "/monitor/"; //NOI18N
084: public final static String monitorContextName = "/monitor_ffj"; //NOI18N
085: }
086:
087: public static class Http {
088:
089: public final static String POST = "POST"; //NOI18N
090: public final static String GET = "GET"; //NOI18N
091: public final static String PUT = "PUT"; //NOI18N
092: public final static String DELETE = "DELETE"; //NOI18N
093:
094: public final static String HEAD = "HEAD"; //NOI18N
095: public final static String mimeHTML = "text/html"; //NOI18N
096: public final static String mimeTEXT = "text/plain"; //NOI18N
097:
098: public final static String userAgent = "user-agent"; //NOI18N
099: public final static String accept = "accept"; //NOI18N
100: public final static String acceptCharset = "accept-charset"; //NOI18N
101: public final static String acceptEncoding = "accept-encoding"; //NOI18N
102: public final static String acceptLang = "accept-language"; //NOI18N
103: public final static String referer = "referer"; //NOI18N
104: }
105:
106: public static class Html {
107:
108: // Main stuff
109: public final static String startHtml = "<HTML>\n"; //NOI18N
110: public final static String endHtml = "</HTML>\n"; //NOI18N
111:
112: public final static String startBodyNetbeans = "<body text=\"#000000\" bgcolor=\"#CCCCCC\" link=\"#0000EE\" vlink=\"#551A8B\" alink=\"#FF0000\">\n<table with=\"400\">\n<tr><td>\n"; //NOI18N
113:
114: public final static String endBodyNetbeans = "</td></tr></table></body>"; //NOI18N
115:
116: // Misc
117: public final static String replayURL = "http://{0}:{1}{2}?resend_ffj={3}¤t_ffj={4}"; //NOI18N
118: public final static String par = "<p></p>\n"; //NOI18N
119: public final static String hr = "<hr>\n"; //NOI18N
120: public final static String br = "<br>\n"; //NOI18N
121: public final static String bold = "<b>{0}</b><br>\n"; //NOI18N
122:
123: // Tables
124: public final static String startTable2 = "<table border=\"1\" cellspacing=\"0\" cellpadding=\"1\" cols=\"2\" width=\"400\" bgcolor=\"#C0C0C0\" >\n"; //NOI18N
125:
126: public final static String startTable4 = "<table border=\"1\" cellspacing=\"0\" cellpadding=\"1\" cols=\"4\" width=\"400\" bgcolor=\"#C0C0C0\" >\n"; //NOI18N
127:
128: public final static String endTable = "</table>\n"; //NOI18N
129: public final static String itemString = "<tr><td width=\"170\">{0}</td><td width=\"210\">{1}</td></tr>\n"; //NOI18N
130: public final static String itemStringTwo = "<tr><td width=\"60\">{0}</td><td width=\"80\">{1}</td><td width=\"60\">{2}</td><td width=\"180\">{3}</td></tr>\n"; //NOI18N
131:
132: }
133:
134: public static class Punctuation {
135:
136: public final static String newLine = "\n"; //NOI18N
137: public final static String tab = "\t"; //NOI18N
138: public final static String itemSep = "|"; //NOI18N
139: public final static String slash = "/"; //NOI18N
140: }
141:
142: } // Constants
|