KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > matuschek > http > HttpConstants


1 package net.matuschek.http;
2
3 /*********************************************
4  * Copyright (c) 2001 by Daniel Matuschek
5  * *******************************************/

6
7 /**
8  * Constants for HTTP
9  * @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 }
Popular Tags