• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/conn/params/ConnConnectionPNames.java $
3  * $Revision: 576068 $
4  * $Date: 2007-09-16 03:25:01 -0700 (Sun, 16 Sep 2007) $
5  *
6  * ====================================================================
7  *
8  *  Licensed to the Apache Software Foundation (ASF) under one or more
9  *  contributor license agreements.  See the NOTICE file distributed with
10  *  this work for additional information regarding copyright ownership.
11  *  The ASF licenses this file to You under the Apache License, Version 2.0
12  *  (the "License"); you may not use this file except in compliance with
13  *  the License.  You may obtain a copy of the License at
14  *
15  *      http://www.apache.org/licenses/LICENSE-2.0
16  *
17  *  Unless required by applicable law or agreed to in writing, software
18  *  distributed under the License is distributed on an "AS IS" BASIS,
19  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20  *  See the License for the specific language governing permissions and
21  *  limitations under the License.
22  * ====================================================================
23  *
24  * This software consists of voluntary contributions made by many
25  * individuals on behalf of the Apache Software Foundation.  For more
26  * information on the Apache Software Foundation, please see
27  * <http://www.apache.org/>.
28  *
29  */
30 
31 package org.apache.http.conn.params;
32 
33 
34 /**
35  * Parameter names for connections in HttpConn.
36  *
37  * @version $Revision: 576068 $
38  *
39  * @since 4.0
40  *
41  * @deprecated Please use {@link java.net.URL#openConnection} instead.
42  *     Please visit <a href="http://android-developers.blogspot.com/2011/09/androids-http-clients.html">this webpage</a>
43  *     for further details.
44  */
45 @Deprecated
46 public interface ConnConnectionPNames {
47 
48 
49     /**
50      * Defines the maximum number of ignorable lines before we expect
51      * a HTTP response's status line.
52      * <p>
53      * With HTTP/1.1 persistent connections, the problem arises that
54      * broken scripts could return a wrong Content-Length
55      * (there are more bytes sent than specified).
56      * Unfortunately, in some cases, this cannot be detected after the
57      * bad response, but only before the next one.
58      * So HttpClient must be able to skip those surplus lines this way.
59      * </p>
60      * <p>
61      * This parameter expects a value of type {@link Integer}.
62      * 0 disallows all garbage/empty lines before the status line.
63      * Use {@link java.lang.Integer#MAX_VALUE} for unlimited
64      * (default in lenient mode).
65      * </p>
66      */
67     public static final String MAX_STATUS_LINE_GARBAGE = "http.connection.max-status-line-garbage";
68 
69 
70 }
71