KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > axis > transport > http > HTTPConstants


1 /*
2  * The Apache Software License, Version 1.1
3  *
4  *
5  * Copyright (c) 2001-2003 The Apache Software Foundation. All rights
6  * reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  *
12  * 1. Redistributions of source code must retain the above copyright
13  * notice, this list of conditions and the following disclaimer.
14  *
15  * 2. Redistributions in binary form must reproduce the above copyright
16  * notice, this list of conditions and the following disclaimer in
17  * the documentation and/or other materials provided with the
18  * distribution.
19  *
20  * 3. The end-user documentation included with the redistribution,
21  * if any, must include the following acknowledgment:
22  * "This product includes software developed by the
23  * Apache Software Foundation (http://www.apache.org/)."
24  * Alternately, this acknowledgment may appear in the software itself,
25  * if and wherever such third-party acknowledgments normally appear.
26  *
27  * 4. The names "Axis" and "Apache Software Foundation" must
28  * not be used to endorse or promote products derived from this
29  * software without prior written permission. For written
30  * permission, please contact apache@apache.org.
31  *
32  * 5. Products derived from this software may not be called "Apache",
33  * nor may "Apache" appear in their name, without prior written
34  * permission of the Apache Software Foundation.
35  *
36  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
37  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
38  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
39  * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
40  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
41  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
42  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
43  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
44  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
45  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
46  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
47  * SUCH DAMAGE.
48  * ====================================================================
49  *
50  * This software consists of voluntary contributions made by many
51  * individuals on behalf of the Apache Software Foundation. For more
52  * information on the Apache Software Foundation, please see
53  * <http://www.apache.org/>.
54  */

55
56 package org.jboss.axis.transport.http;
57
58 /**
59  * HTTP protocol and message context constants.
60  *
61  * @author Rob Jellinghaus (robj@unrealities.com)
62  * @author Doug Davis (dug@us.ibm.com)
63  * @author Jacek Kopecky (jacek@idoox.com)
64  */

65 public class HTTPConstants
66 {
67    /**
68     * The MessageContext transport ID of HTTP.
69     * (Maybe this should be more specific, like "http_servlet",
70     * whaddya think? - todo by Jacek)
71     */

72
73    public static final String JavaDoc HEADER_PROTOCOL_10 = "HTTP/1.0";
74    public static final String JavaDoc HEADER_PROTOCOL_11 = "HTTP/1.1";
75    public static final String JavaDoc HEADER_PROTOCOL_V10 = "1.0".intern();
76    public static final String JavaDoc HEADER_PROTOCOL_V11 = "1.1".intern();
77    public static final String JavaDoc HEADER_POST = "POST";
78    public static final String JavaDoc HEADER_HOST = "Host";
79    public static final String JavaDoc HEADER_CONTENT_DESCRIPTION = "Content-Description";
80    public static final String JavaDoc HEADER_CONTENT_TYPE = "Content-Type";
81    public static final String JavaDoc HEADER_CONTENT_TRANSFER_ENCODING = "Content-Transfer-Encoding";
82    public static final String JavaDoc HEADER_CONTENT_TYPE_JMS = "ContentType";
83    public static final String JavaDoc HEADER_CONTENT_LENGTH = "Content-Length";
84    public static final String JavaDoc HEADER_CONTENT_LOCATION = "Content-Location";
85    public static final String JavaDoc HEADER_CONTENT_ID = "Content-Id";
86    public static final String JavaDoc HEADER_SOAP_ACTION = "SOAPAction";
87    public static final String JavaDoc HEADER_AUTHORIZATION = "Authorization";
88    public static final String JavaDoc HEADER_PROXY_AUTHORIZATION = "Proxy-Authorization";
89    public static final String JavaDoc HEADER_EXPECT = "Expect";
90    public static final String JavaDoc HEADER_EXPECT_100_Continue = "100-continue";
91    public static final String JavaDoc HEADER_USER_AGENT = "User-Agent";
92    public static final String JavaDoc HEADER_CACHE_CONTROL = "Cache-Control";
93    public static final String JavaDoc HEADER_CACHE_CONTROL_NOCACHE = "no-cache";
94    public static final String JavaDoc HEADER_PRAGMA = "Pragma";
95
96
97    public static final String JavaDoc REQUEST_HEADERS = "HTTP-Request-Headers";
98    public static final String JavaDoc RESPONSE_HEADERS = "HTTP-Response-Headers";
99
100    /*http 1.1*/
101    public static final String JavaDoc HEADER_TRANSFER_ENCODING = "Transfer-Encoding".intern();
102    public static final String JavaDoc HEADER_TRANSFER_ENCODING_CHUNKED = "chunked".intern();
103
104    public static final String JavaDoc HEADER_CONNECTION = "Connection";
105    public static final String JavaDoc HEADER_CONNECTION_CLOSE = "close".intern();
106    public static final String JavaDoc HEADER_CONNECTION_KEEPALIVE = "Keep-Alive".intern();//The default don't send.
107

108    public static final String JavaDoc HEADER_ACCEPT = "Accept";
109    public static final String JavaDoc HEADER_ACCEPT_TEXT_ALL = "text/*";
110    public static final String JavaDoc HEADER_ACCEPT_APPL_SOAP = "application/soap+xml";
111    public static final String JavaDoc HEADER_ACCEPT_MULTIPART_RELATED = "multipart/related";
112    public static final String JavaDoc HEADER_ACCEPT_APPLICATION_DIME = "application/dime";
113
114
115    /**
116     * Cookie headers
117     */

118    public static final String JavaDoc HEADER_COOKIE = "Cookie";
119    public static final String JavaDoc HEADER_COOKIE2 = "Cookie2";
120    public static final String JavaDoc HEADER_SET_COOKIE = "Set-Cookie";
121    public static final String JavaDoc HEADER_SET_COOKIE2 = "Set-Cookie2";
122
123    /**
124     * Integer
125     */

126    public static String JavaDoc MC_HTTP_STATUS_CODE = "transport.http.statusCode";
127
128    /**
129     * String
130     */

131    public static String JavaDoc MC_HTTP_STATUS_MESSAGE = "transport.http.statusMessage";
132
133    /**
134     * HttpServlet
135     */

136    public static String JavaDoc MC_HTTP_SERVLET = "transport.http.servlet";
137
138    /**
139     * HttpServletRequest
140     */

141    public static String JavaDoc MC_HTTP_SERVLETREQUEST = "transport.http.servletRequest";
142    /**
143     * HttpServletResponse
144     */

145    public static String JavaDoc MC_HTTP_SERVLETRESPONSE = "transport.http.servletResponse";
146    public static String JavaDoc MC_HTTP_SERVLETLOCATION = "transport.http.servletLocation";
147    public static String JavaDoc MC_HTTP_SERVLETPATHINFO = "transport.http.servletPathInfo";
148
149    /**
150     * @deprecated Should use javax.xml.rpc.Call.SOAPACTION_URI_PROPERTY instead.
151     */

152    public static String JavaDoc MC_HTTP_SOAPACTION = javax.xml.rpc.Call.SOAPACTION_URI_PROPERTY;
153
154    /**
155     * HTTP header field values
156     */

157    public static final String JavaDoc HEADER_DEFAULT_CHAR_ENCODING = "iso-8859-1";
158 }
159
Popular Tags