KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * Copyright 2001-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.axis.transport.http;
18
19 /**
20  * HTTP protocol and message context constants.
21  *
22  * @author Rob Jellinghaus (robj@unrealities.com)
23  * @author Doug Davis (dug@us.ibm.com)
24  * @author Jacek Kopecky (jacek@idoox.com)
25  */

26 public class HTTPConstants {
27     /** The MessageContext transport ID of HTTP.
28      * (Maybe this should be more specific, like "http_servlet",
29      * whaddya think? - todo by Jacek)
30      */

31
32     public static final String JavaDoc HEADER_PROTOCOL_10 = "HTTP/1.0";
33     public static final String JavaDoc HEADER_PROTOCOL_11 = "HTTP/1.1";
34     public static final String JavaDoc HEADER_PROTOCOL_V10 = "1.0".intern();
35     public static final String JavaDoc HEADER_PROTOCOL_V11 = "1.1".intern();
36     public static final String JavaDoc HEADER_POST = "POST";
37     public static final String JavaDoc HEADER_HOST = "Host";
38     public static final String JavaDoc HEADER_CONTENT_DESCRIPTION = "Content-Description";
39     public static final String JavaDoc HEADER_CONTENT_TYPE = "Content-Type";
40     public static final String JavaDoc HEADER_CONTENT_TRANSFER_ENCODING = "Content-Transfer-Encoding";
41     public static final String JavaDoc HEADER_CONTENT_TYPE_JMS = "ContentType";
42     public static final String JavaDoc HEADER_CONTENT_LENGTH = "Content-Length";
43     public static final String JavaDoc HEADER_CONTENT_LOCATION = "Content-Location";
44     public static final String JavaDoc HEADER_CONTENT_ID = "Content-Id";
45     public static final String JavaDoc HEADER_SOAP_ACTION = "SOAPAction";
46     public static final String JavaDoc HEADER_AUTHORIZATION = "Authorization";
47     public static final String JavaDoc HEADER_PROXY_AUTHORIZATION = "Proxy-Authorization";
48     public static final String JavaDoc HEADER_EXPECT = "Expect";
49     public static final String JavaDoc HEADER_EXPECT_100_Continue = "100-continue";
50     public static final String JavaDoc HEADER_USER_AGENT = "User-Agent";
51     public static final String JavaDoc HEADER_CACHE_CONTROL = "Cache-Control";
52     public static final String JavaDoc HEADER_CACHE_CONTROL_NOCACHE = "no-cache";
53     public static final String JavaDoc HEADER_PRAGMA = "Pragma";
54     public static final String JavaDoc HEADER_LOCATION = "Location";
55
56
57
58     
59     public static final String JavaDoc REQUEST_HEADERS = "HTTP-Request-Headers";
60     public static final String JavaDoc RESPONSE_HEADERS = "HTTP-Response-Headers";
61
62     /*http 1.1*/
63     public static final String JavaDoc HEADER_TRANSFER_ENCODING = "Transfer-Encoding".intern();
64     public static final String JavaDoc HEADER_TRANSFER_ENCODING_CHUNKED = "chunked".intern();
65
66     public static final String JavaDoc HEADER_CONNECTION = "Connection";
67     public static final String JavaDoc HEADER_CONNECTION_CLOSE = "close".intern();
68     public static final String JavaDoc HEADER_CONNECTION_KEEPALIVE = "Keep-Alive".intern();//The default don't send.
69

70     public static final String JavaDoc HEADER_ACCEPT = "Accept";
71     public static final String JavaDoc HEADER_ACCEPT_TEXT_ALL = "text/*";
72     public static final String JavaDoc HEADER_ACCEPT_APPL_SOAP = "application/soap+xml";
73     public static final String JavaDoc HEADER_ACCEPT_MULTIPART_RELATED = "multipart/related";
74     public static final String JavaDoc HEADER_ACCEPT_APPLICATION_DIME = "application/dime";
75     
76
77     /**
78      * Cookie headers
79      */

80     public static final String JavaDoc HEADER_COOKIE = "Cookie";
81     public static final String JavaDoc HEADER_COOKIE2 = "Cookie2";
82     public static final String JavaDoc HEADER_SET_COOKIE = "Set-Cookie";
83     public static final String JavaDoc HEADER_SET_COOKIE2 = "Set-Cookie2";
84     
85     /** Integer
86      */

87     public static String JavaDoc MC_HTTP_STATUS_CODE = "transport.http.statusCode";
88
89     /** String
90      */

91     public static String JavaDoc MC_HTTP_STATUS_MESSAGE = "transport.http.statusMessage";
92
93     /** HttpServlet
94      */

95     public static String JavaDoc MC_HTTP_SERVLET = "transport.http.servlet" ;
96
97     /** HttpServletRequest
98      */

99     public static String JavaDoc MC_HTTP_SERVLETREQUEST = "transport.http.servletRequest";
100     /** HttpServletResponse
101      */

102     public static String JavaDoc MC_HTTP_SERVLETRESPONSE= "transport.http.servletResponse";
103     public static String JavaDoc MC_HTTP_SERVLETLOCATION= "transport.http.servletLocation";
104     public static String JavaDoc MC_HTTP_SERVLETPATHINFO= "transport.http.servletPathInfo";
105
106     /**
107      * @deprecated Should use javax.xml.rpc.Call.SOAPACTION_URI_PROPERTY instead.
108      */

109     public static String JavaDoc MC_HTTP_SOAPACTION = javax.xml.rpc.Call.SOAPACTION_URI_PROPERTY;
110
111     /** HTTP header field values
112      */

113     public static final String JavaDoc HEADER_DEFAULT_CHAR_ENCODING = "iso-8859-1";
114     
115     /**
116      * AXIS servlet plugin parameter names.
117      */

118     
119     public static final String JavaDoc PLUGIN_NAME = "transport.http.plugin.pluginName";
120     public static final String JavaDoc PLUGIN_SERVICE_NAME = "transport.http.plugin.serviceName";
121     public static final String JavaDoc PLUGIN_IS_DEVELOPMENT = "transport.http.plugin.isDevelopment";
122     public static final String JavaDoc PLUGIN_ENABLE_LIST = "transport.http.plugin.enableList";
123     public static final String JavaDoc PLUGIN_ENGINE = "transport.http.plugin.engine";
124     public static final String JavaDoc PLUGIN_WRITER = "transport.http.plugin.writer";
125     public static final String JavaDoc PLUGIN_LOG = "transport.http.plugin.log";
126     public static final String JavaDoc PLUGIN_EXCEPTION_LOG = "transport.http.plugin.exceptionLog";
127 }
128
Popular Tags