001: /*
002: * $HeadURL: https://svn.apache.org/repos/asf/httpcomponents/httpcore/tags/4.0-beta1/module-main/src/main/java/org/apache/http/params/CoreProtocolPNames.java $
003: * $Revision: 576077 $
004: * $Date: 2007-09-16 13:50:22 +0200 (Sun, 16 Sep 2007) $
005: *
006: * ====================================================================
007: * Licensed to the Apache Software Foundation (ASF) under one
008: * or more contributor license agreements. See the NOTICE file
009: * distributed with this work for additional information
010: * regarding copyright ownership. The ASF licenses this file
011: * to you under the Apache License, Version 2.0 (the
012: * "License"); you may not use this file except in compliance
013: * with the License. You may obtain a copy of the License at
014: *
015: * http://www.apache.org/licenses/LICENSE-2.0
016: *
017: * Unless required by applicable law or agreed to in writing,
018: * software distributed under the License is distributed on an
019: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
020: * KIND, either express or implied. See the License for the
021: * specific language governing permissions and limitations
022: * under the License.
023: * ====================================================================
024: *
025: * This software consists of voluntary contributions made by many
026: * individuals on behalf of the Apache Software Foundation. For more
027: * information on the Apache Software Foundation, please see
028: * <http://www.apache.org/>.
029: *
030: */
031:
032: package org.apache.http.params;
033:
034: /**
035: * Defines parameter names for protocol execution in HttpCore.
036: *
037: * @version $Revision: 576077 $
038: *
039: * @since 4.0
040: */
041: public interface CoreProtocolPNames {
042:
043: /**
044: * Defines the {@link org.apache.http.ProtocolVersion protocol version}
045: * used per default.
046: * <p>
047: * This parameter expects a value of type
048: * {@link org.apache.http.ProtocolVersion}.
049: * </p>
050: */
051: public static final String PROTOCOL_VERSION = "http.protocol.version";
052:
053: /**
054: * Defines the charset to be used for encoding HTTP protocol elements.
055: * <p>
056: * This parameter expects a value of type {@link String}.
057: * </p>
058: */
059: public static final String HTTP_ELEMENT_CHARSET = "http.protocol.element-charset";
060:
061: /**
062: * Defines the charset to be used per default for encoding content body.
063: * <p>
064: * This parameter expects a value of type {@link String}.
065: * </p>
066: */
067: public static final String HTTP_CONTENT_CHARSET = "http.protocol.content-charset";
068:
069: /**
070: * Defines the content of the <tt>User-Agent</tt> header.
071: * <p>
072: * This parameter expects a value of type {@link String}.
073: * </p>
074: */
075: public static final String USER_AGENT = "http.useragent";
076:
077: /**
078: * Defines the content of the <tt>Server</tt> header.
079: * <p>
080: * This parameter expects a value of type {@link String}.
081: * </p>
082: */
083: public static final String ORIGIN_SERVER = "http.origin-server";
084:
085: /**
086: * Defines whether responses with an invalid <tt>Transfer-Encoding</tt> header should be
087: * rejected.
088: * <p>
089: * This parameter expects a value of type {@link Boolean}.
090: * </p>
091: */
092: public static final String STRICT_TRANSFER_ENCODING = "http.protocol.strict-transfer-encoding";
093:
094: /**
095: * <p>
096: * Activates 'Expect: 100-Continue' handshake for the
097: * entity enclosing methods. The purpose of the 'Expect: 100-Continue'
098: * handshake to allow a client that is sending a request message with
099: * a request body to determine if the origin server is willing to
100: * accept the request (based on the request headers) before the client
101: * sends the request body.
102: * </p>
103: *
104: * <p>
105: * The use of the 'Expect: 100-continue' handshake can result in
106: * noticable peformance improvement for entity enclosing requests
107: * (such as POST and PUT) that require the target server's
108: * authentication.
109: * </p>
110: *
111: * <p>
112: * 'Expect: 100-continue' handshake should be used with
113: * caution, as it may cause problems with HTTP servers and
114: * proxies that do not support HTTP/1.1 protocol.
115: * </p>
116: *
117: * This parameter expects a value of type {@link Boolean}.
118: */
119: public static final String USE_EXPECT_CONTINUE = "http.protocol.expect-continue";
120:
121: /**
122: * <p>
123: * Defines the maximum period of time in milliseconds the client should spend
124: * waiting for a 100-continue response.
125: * </p>
126: *
127: * This parameter expects a value of type {@link Integer}.
128: */
129: public static final String WAIT_FOR_CONTINUE = "http.protocol.wait-for-continue";
130:
131: }
|