KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > tools > adaptor > http > HttpConstants


1 /*
2  * Copyright (C) The MX4J Contributors.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the MX4J License version 1.0.
6  * See the terms of the MX4J License in the documentation provided with this software.
7  */

8 package mx4j.tools.adaptor.http;
9
10 /**
11  * Define constants for the HTTP request processing
12  *
13  * @version $Revision: 1.3 $
14  */

15 public class HttpConstants
16 {
17    /**
18     * Server info header
19     */

20    public final static String JavaDoc SERVER_INFO = "MX4J-HTTPD/1.0";
21
22    /**
23     * HTTP implemented version
24     */

25    public final static String JavaDoc HTTP_VERSION = "HTTP/1.0 ";
26
27    /**
28     * Get method header
29     */

30    public final static String JavaDoc METHOD_GET = "GET";
31
32    /**
33     * Post method header
34     */

35    public final static String JavaDoc METHOD_POST = "POST";
36
37    /**
38     * Status code OK
39     */

40    public final static int STATUS_OKAY = 200;
41
42    /**
43     * Status code NO CONTENT
44     */

45    public final static int STATUS_NO_CONTENT = 204;
46
47    /**
48     * Status code MOVED PERMANENTLY
49     */

50    public final static int STATUS_MOVED_PERMANENTLY = 301;
51
52    /**
53     * Status code MOVED TEMPORARILY
54     */

55    public final static int STATUS_MOVED_TEMPORARILY = 302;
56
57    /**
58     * Status code BAD REQUEST
59     */

60    public final static int STATUS_BAD_REQUEST = 400;
61
62    /**
63     * Status code AUTHENTICATE
64     */

65    public final static int STATUS_AUTHENTICATE = 401;
66
67    /**
68     * Status code FORBIDDEN
69     */

70    public final static int STATUS_FORBIDDEN = 403;
71
72    /**
73     * Status code NOT FOUND
74     */

75    public final static int STATUS_NOT_FOUND = 404;
76
77    /**
78     * Status code NOT ALLOWED
79     */

80    public final static int STATUS_NOT_ALLOWED = 405;
81
82    /**
83     * Status code INTERNAL ERROR
84     */

85    public final static int STATUS_INTERNAL_ERROR = 500;
86
87    /**
88     * Status code NOT IMPLEMENTED
89     */

90    public final static int STATUS_NOT_IMPLEMENTED = 501;
91
92 }
93
Popular Tags