KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > web > monitor > data > Constants


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.web.monitor.data;
21
22 public class Constants {
23
24     public static class Files {
25
26     public final static String JavaDoc log = "log"; //NOI18N
27
public final static String JavaDoc client = "client.data"; //NOI18N
28
public final static String JavaDoc request = "request.data"; //NOI18N
29
public final static String JavaDoc session = "session.data"; //NOI18N
30
public final static String JavaDoc cookies = "cookies.data"; //NOI18N
31
public final static String JavaDoc servletProps = "environ.data"; //NOI18N
32
public final static String JavaDoc all = "all.data"; //NOI18N
33
public final static String JavaDoc replay = "saved.obj"; //NOI18N
34

35     public final static String JavaDoc monitor = "monitor"; //NOI18N
36
public final static String JavaDoc save = "save"; //NOI18N
37
public final static String JavaDoc current = "current"; //NOI18N
38
public final static String JavaDoc blank = "blank"; //NOI18N
39
public final static String JavaDoc getall = "getall"; //NOI18N
40
public final static String JavaDoc delete = "delete"; //NOI18N
41
}
42
43     public static class Comm {
44     public final static String JavaDoc ACK = "ACK"; //NOI18N
45
public final static String JavaDoc END = "END"; //NOI18N
46
public final static String JavaDoc ERROR = "ERROR"; //NOI18N
47
public final static String JavaDoc ATT = "bvhE12xSa"; //NOI18N
48
}
49
50     public static class Labels {
51
52     public final static String JavaDoc id = "id"; //NOI18N
53
public final static String JavaDoc uri = "uri"; //NOI18N
54
public final static String JavaDoc invoker = "invoker"; //NOI18N
55
public final static String JavaDoc resend = "resend_ffj"; //NOI18N
56
public final static String JavaDoc current = "current_ffj"; //NOI18N
57
public final static String JavaDoc port = "port"; //NOI18N
58
}
59   
60     public static class Context {
61     public final static String JavaDoc monitorDir = "/monitor/"; //NOI18N
62
public final static String JavaDoc monitorContextName = "/monitor_ffj"; //NOI18N
63
}
64
65     public static class Http {
66
67     public final static String JavaDoc POST = "POST"; //NOI18N
68
public final static String JavaDoc GET = "GET"; //NOI18N
69
public final static String JavaDoc PUT = "PUT"; //NOI18N
70
public final static String JavaDoc DELETE = "DELETE"; //NOI18N
71

72     public final static String JavaDoc HEAD = "HEAD"; //NOI18N
73
public final static String JavaDoc mimeHTML = "text/html"; //NOI18N
74
public final static String JavaDoc mimeTEXT = "text/plain"; //NOI18N
75

76     public final static String JavaDoc userAgent = "user-agent"; //NOI18N
77
public final static String JavaDoc accept = "accept"; //NOI18N
78
public final static String JavaDoc acceptCharset = "accept-charset"; //NOI18N
79
public final static String JavaDoc acceptEncoding = "accept-encoding"; //NOI18N
80
public final static String JavaDoc acceptLang = "accept-language"; //NOI18N
81
public final static String JavaDoc referer = "referer"; //NOI18N
82
}
83
84     public static class Html {
85
86     // Main stuff
87
public final static String JavaDoc startHtml = "<HTML>\n"; //NOI18N
88
public final static String JavaDoc endHtml = "</HTML>\n"; //NOI18N
89

90     public final static String JavaDoc startBodyNetbeans =
91         "<body text=\"#000000\" bgcolor=\"#CCCCCC\" link=\"#0000EE\" vlink=\"#551A8B\" alink=\"#FF0000\">\n<table with=\"400\">\n<tr><td>\n"; //NOI18N
92

93     public final static String JavaDoc endBodyNetbeans =
94         "</td></tr></table></body>"; //NOI18N
95

96     // Misc
97
public final static String JavaDoc replayURL = "http://{0}:{1}{2}?resend_ffj={3}&current_ffj={4}"; //NOI18N
98
public final static String JavaDoc par = "<p></p>\n"; //NOI18N
99
public final static String JavaDoc hr = "<hr>\n"; //NOI18N
100
public final static String JavaDoc br = "<br>\n"; //NOI18N
101
public final static String JavaDoc bold = "<b>{0}</b><br>\n"; //NOI18N
102

103     // Tables
104
public final static String JavaDoc startTable2 =
105         "<table border=\"1\" cellspacing=\"0\" cellpadding=\"1\" cols=\"2\" width=\"400\" bgcolor=\"#C0C0C0\" >\n"; //NOI18N
106

107
108     public final static String JavaDoc startTable4 =
109         "<table border=\"1\" cellspacing=\"0\" cellpadding=\"1\" cols=\"4\" width=\"400\" bgcolor=\"#C0C0C0\" >\n"; //NOI18N
110

111     public final static String JavaDoc endTable = "</table>\n"; //NOI18N
112
public final static String JavaDoc itemString =
113         "<tr><td width=\"170\">{0}</td><td width=\"210\">{1}</td></tr>\n"; //NOI18N
114
public final static String JavaDoc itemStringTwo =
115         "<tr><td width=\"60\">{0}</td><td width=\"80\">{1}</td><td width=\"60\">{2}</td><td width=\"180\">{3}</td></tr>\n"; //NOI18N
116

117     }
118
119     public static class Punctuation {
120
121     public final static String JavaDoc newLine = "\n"; //NOI18N
122
public final static String JavaDoc tab = "\t"; //NOI18N
123
public final static String JavaDoc itemSep = "|"; //NOI18N
124
public final static String JavaDoc slash = "/"; //NOI18N
125
}
126   
127 } // Constants
128

129
130
131
132
133
134
135
136
Popular Tags