001 /*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements. See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License. You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017 package org.apache.servicemix.soap.bindings.http;
018
019 import java.net.URI;
020
021 public class HttpConstants {
022
023 public static final String METHOD_GET = "GET";
024 public static final String METHOD_POST = "POST";
025 public static final String METHOD_PUT = "PUT";
026 public static final String METHOD_DELETE = "DELETE";
027
028
029 //{input/output serialization} constants
030 public static final String SERIAL_APP_URLENCODED = "application/x-www-form-urlencoded";
031 public static final String SERIAL_APP_XML = "application/xml";
032 public static final String SERIAL_MULTIPART_FORMDATA = "multipart/form-data";
033
034 // operation styles
035 public static final URI STYLE_RPC = URI.create("http://www.w3.org/2006/01/wsdl/style/rpc");
036 public static final URI STYLE_IRI = URI.create("http://www.w3.org/2006/01/wsdl/style/iri");
037 public static final URI STYLE_MULTIPART = URI.create("http://www.w3.org/2006/01/wsdl/style/multipart");
038
039 public static final String QUERY_SEP_AMPERSAND = "&";
040
041 // CGI headers
042 public static final String AUTH_TYPE = "AUTH_TYPE";
043 public static final String CONTENT_LENGTH = "CONTENT_LENGTH";
044 public static final String CONTENT_TYPE = "CONTENT_TYPE";
045 public static final String DOCUMENT_ROOT = "DOCUMENT_ROOT";
046 public static final String PATH_INFO = "PATH_INFO";
047 public static final String PATH_TRANSLATED = "PATH_TRANSLATED";
048 public static final String QUERY_STRING = "QUERY_STRING";
049 public static final String REMOTE_ADDRESS = "REMOTE_ADDR";
050 public static final String REMOTE_HOST = "REMOTE_HOST";
051 public static final String REMOTE_USER = "REMOTE_USER";
052 public static final String REQUEST_METHOD = "REQUEST_METHOD";
053 public static final String REQUEST_URI = "REQUEST_URI";
054 public static final String SCRIPT_NAME = "SCRIPT_NAME";
055 public static final String SERVER_NAME = "SERVER_NAME";
056 public static final String SERVER_PORT = "SERVER_PORT";
057 public static final String SERVER_PROTOCOL = "SERVER_PROTOCOL";
058
059 }