01: package net.matuschek.http;
02:
03: /*********************************************
04: * Copyright (c) 2001 by Daniel Matuschek
05: * *******************************************/
06:
07: /**
08: * Constants for HTTP
09: * @author Daniel Matuschek
10: * @version $Revision: 1.4 $
11: * */
12: public class HttpConstants {
13: public final static int HTTP_OK = 200;
14: public final static int HTTP_FOUND = 302;
15: public final static int HTTP_MOVEDPERMANENTLY = 301;
16: public final static int HTTP_UNAUTHORIZED = 401;
17: public final static int HTTP_NOTFOUND = 404;
18: public final static int HTTP_NOTMODIFIED = 304;
19:
20: /** HTTP GET request **/
21: public final static int GET = 1;
22:
23: /** HTTP POST request **/
24: public final static int POST = 2;
25:
26: /** HTTP HEAD request **/
27: public final static int HEAD = 3;
28: }
|