01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.servicemix.soap.bindings.http;
18:
19: import java.net.URI;
20:
21: public class HttpConstants {
22:
23: public static final String METHOD_GET = "GET";
24: public static final String METHOD_POST = "POST";
25: public static final String METHOD_PUT = "PUT";
26: public static final String METHOD_DELETE = "DELETE";
27:
28: //{input/output serialization} constants
29: public static final String SERIAL_APP_URLENCODED = "application/x-www-form-urlencoded";
30: public static final String SERIAL_APP_XML = "application/xml";
31: public static final String SERIAL_MULTIPART_FORMDATA = "multipart/form-data";
32:
33: // operation styles
34: public static final URI STYLE_RPC = URI
35: .create("http://www.w3.org/2006/01/wsdl/style/rpc");
36: public static final URI STYLE_IRI = URI
37: .create("http://www.w3.org/2006/01/wsdl/style/iri");
38: public static final URI STYLE_MULTIPART = URI
39: .create("http://www.w3.org/2006/01/wsdl/style/multipart");
40:
41: public static final String QUERY_SEP_AMPERSAND = "&";
42:
43: // CGI headers
44: public static final String AUTH_TYPE = "AUTH_TYPE";
45: public static final String CONTENT_LENGTH = "CONTENT_LENGTH";
46: public static final String CONTENT_TYPE = "CONTENT_TYPE";
47: public static final String DOCUMENT_ROOT = "DOCUMENT_ROOT";
48: public static final String PATH_INFO = "PATH_INFO";
49: public static final String PATH_TRANSLATED = "PATH_TRANSLATED";
50: public static final String QUERY_STRING = "QUERY_STRING";
51: public static final String REMOTE_ADDRESS = "REMOTE_ADDR";
52: public static final String REMOTE_HOST = "REMOTE_HOST";
53: public static final String REMOTE_USER = "REMOTE_USER";
54: public static final String REQUEST_METHOD = "REQUEST_METHOD";
55: public static final String REQUEST_URI = "REQUEST_URI";
56: public static final String SCRIPT_NAME = "SCRIPT_NAME";
57: public static final String SERVER_NAME = "SERVER_NAME";
58: public static final String SERVER_PORT = "SERVER_PORT";
59: public static final String SERVER_PROTOCOL = "SERVER_PROTOCOL";
60:
61: }
|