1 /* Reattore HTTP Server
2
3 Copyright (C) 2002 Michael Hope <michaelh@juju.net.nz>
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
19 $Id: HttpConstants.java,v 1.4 2003/02/16 06:27:59 michaelh Exp $
20 */
21
22 package juju.reattore.protocol.http;
23
24 /*** Shared constants.
25 */
26 public interface HttpConstants {
27 /*** Continue */
28 static final int CONTINUE = 100;
29 /*** Switching Protocols */
30 static final int SWITCHING_PROTOCOLS = 101;
31 /*** OK */
32 static final int OK = 200;
33 /*** Created */
34 static final int CREATED = 201;
35 /*** Accepted */
36 static final int ACCEPTED = 202;
37 /*** Non-Authoritative Information */
38 static final int NON_AUTHORITATIVE_INFORMATION = 203;
39 /*** No Content */
40 static final int NO_CONTENT = 204;
41 /*** Reset Content */
42 static final int RESET_CONTENT = 205;
43 /*** Partial Content */
44 static final int PARTIAL_CONTENT = 206;
45 /*** Multiple Choices */
46 static final int MULTIPLE_CHOICES = 300;
47 /*** Moved Permanently */
48 static final int MOVED_PERMANENTLY = 301;
49 /*** Found */
50 static final int FOUND = 302;
51 /*** See Other */
52 static final int SEE_OTHER = 303;
53 /*** Not Modified */
54 static final int NOT_MODIFIED = 304;
55 /*** Use Proxy */
56 static final int USE_PROXY = 305;
57 /*** Temporary Redirect */
58 static final int TEMPORARY_REDIRECT = 307;
59 /*** Bad Request */
60 static final int BAD_REQUEST = 400;
61 /*** Unauthorized */
62 static final int UNAUTHORIZED = 401;
63 /*** Payment Required */
64 static final int PAYMENT_REQUIRED = 402;
65 /*** Forbidden */
66 static final int FORBIDDEN = 403;
67 /*** Not Found */
68 static final int NOT_FOUND = 404;
69 /*** Method Not Allowed */
70 static final int METHOD_NOT_ALLOWED = 405;
71 /*** Not Acceptable */
72 static final int NOT_ACCEPTABLE = 406;
73 /*** Proxy Authentication Required */
74 static final int PROXY_AUTHENTICATION_REQUIRED = 407;
75 /*** Request Time-out */
76 static final int REQUEST_TIME_OUT = 408;
77 /*** Conflict */
78 static final int CONFLICT = 409;
79 /*** Gone */
80 static final int GONE = 410;
81 /*** Length Required */
82 static final int LENGTH_REQUIRED = 411;
83 /*** Precondition Failed */
84 static final int PRECONDITION_FAILED = 412;
85 /*** Request Entity Too Large */
86 static final int REQUEST_ENTITY_TOO_LARGE = 413;
87 /*** Request-URI Too Large */
88 static final int REQUEST_URI_TOO_LARGE = 414;
89 /*** Unsupported Media Type */
90 static final int UNSUPPORTED_MEDIA_TYPE = 415;
91 /*** Requested range not satisfiable */
92 static final int REQUESTED_RANGE_NOT_SATISFIABLE = 416;
93 /*** Expectation Failed */
94 static final int EXPECTATION_FAILED = 417;
95 /*** Internal Server Error */
96 static final int INTERNAL_SERVER_ERROR = 500;
97 /*** Not Implemented */
98 static final int NOT_IMPLEMENTED = 501;
99 /*** Bad Gateway */
100 static final int BAD_GATEWAY = 502;
101 /*** Service Unavailable */
102 static final int SERVICE_UNAVAILABLE = 503;
103 /*** Gateway Time-out */
104 static final int GATEWAY_TIME_OUT = 504;
105 /*** HTTP Version not supported */
106 static final int HTTP_VERSION_NOT_SUPPORTED = 505;
107
108 /* General headers */
109 /*** Cache-Control */
110 static final String CACHE_CONTROL = "Cache-Control";
111 /*** Connection */
112 static final String CONNECTION = "Connection";
113 /*** Date */
114 static final String DATE = "Date";
115 /*** Pragma */
116 static final String PRAGMA = "Pragma";
117 /*** Trailer */
118 static final String TRAILER = "Trailer";
119 /*** Transfer-Encoding */
120 static final String TRANSFER_ENCODING = "Transfer-Encoding";
121 /*** Upgrade */
122 static final String UPGRADE = "Upgrade";
123 /*** Via */
124 static final String VIA = "Via";
125 /*** Warning */
126 static final String WARNING = "Warning";
127
128 /* Request headers */
129 /*** Accept */
130 static final String ACCEPT = "Accept";
131 /*** Accept-Charset */
132 static final String ACCEPT_CHARSET = "Accept-Charset";
133 /*** Accept-Encoding */
134 static final String ACCEPT_ENCODING = "Accept-Encoding";
135 /*** Accept-Language */
136 static final String ACCEPT_LANGUAGE = "Accept-Language";
137 /*** Authorization */
138 static final String AUTHORIZATION = "Authorization";
139 /*** Expect */
140 static final String EXPECT = "Expect";
141 /*** From */
142 static final String FROM = "From";
143 /*** Host */
144 static final String HOST = "Host";
145 /*** If-Match */
146 static final String IF_MATCH = "If-Match";
147 /*** If-Modified-Since */
148 static final String IF_MODIFIED_SINCE = "If-Modified-Since";
149 /*** If-None-Match */
150 static final String IF_NONE_MATCH = "If-None-Match";
151 /*** If-Range */
152 static final String IF_RANGE = "If-Range";
153 /*** If-Unmodified-Since */
154 static final String IF_UNMODIFIED_SINCE = "If-Unmodified-Since";
155 /*** Max-Forwards */
156 static final String MAX_FORWARDS = "Max-Forwards";
157 /*** Proxy-Authorization */
158 static final String PROXY_AUTHORIZATION = "Proxy-Authorization";
159 /*** Range */
160 static final String RANGE = "Range";
161 /*** Referer */
162 static final String REFERER = "Referer";
163 /*** TE */
164 static final String TE = "TE";
165 /*** User-Agent */
166 static final String USER_AGENT = "User-Agent";
167
168 /* Response headers */
169 /*** Accept-Ranges */
170 static final String ACCEPT_RANGES = "Accept-Ranges";
171 /*** Age */
172 static final String AGE = "Age";
173 /*** ETag */
174 static final String ETAG = "ETag";
175 /*** Location */
176 static final String LOCATION = "Location";
177 /*** Proxy-Authenticate */
178 static final String PROXY_AUTHENTICATE = "Proxy-Authenticate";
179 /*** Retry-After */
180 static final String RETRY_AFTER = "Retry-After";
181 /*** Server */
182 static final String SERVER = "Server";
183 /*** Vary */
184 static final String VARY = "Vary";
185 /*** WWW-Authenticate */
186 static final String WWW_AUTHENTICATE = "WWW-Authenticate";
187
188 /* Entity headers */
189 /*** Allow */
190 static final String ALLOW = "Allow";
191 /*** Content-Encoding */
192 static final String CONTENT_ENCODING = "Content-Encoding";
193 /*** Content-Language */
194 static final String CONTENT_LANGUAGE = "Content-Language";
195 /*** Content-Length */
196 static final String CONTENT_LENGTH = "Content-Length";
197 /*** Content-Location */
198 static final String CONTENT_LOCATION = "Content-Location";
199 /*** Content-MD5 */
200 static final String CONTENT_MD5 = "Content-MD5";
201 /*** Content-Range */
202 static final String CONTENT_RANGE = "Content-Range";
203 /*** Content-Type */
204 static final String CONTENT_TYPE = "Content-Type";
205 /*** Expires */
206 static final String EXPIRES = "Expires";
207 /*** Last-Modified */
208 static final String LAST_MODIFIED = "Last-Modified";
209
210 /* Tokens */
211 /*** Connection: close */
212 static final String CLOSE = "close";
213 /*** HTTP/1.0 keep alive */
214 static final String KEEP_ALIVE = "Keep-Alive";
215
216 /* Types */
217 /*** text/html */
218 static final String TEXT_HTML = "text/html";
219 /*** text/plain */
220 static final String TEXT_PLAIN = "text/plain";
221 }
This page was automatically generated by Maven