• 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/ConnManagerPNames.java $
3  * $Revision: 658781 $
4  * $Date: 2008-05-21 10:42:13 -0700 (Wed, 21 May 2008) $
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 connection managers in HttpConn.
36  *
37  * @version $Revision: 658781 $
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 ConnManagerPNames {
47 
48     /**
49      * Defines the timeout in milliseconds used when retrieving an instance of
50      * {@link org.apache.http.conn.ManagedClientConnection} from the
51      * {@link org.apache.http.conn.ClientConnectionManager}.
52      * <p>
53      * This parameter expects a value of type {@link Long}.
54      * </p>
55      */
56     public static final String TIMEOUT = "http.conn-manager.timeout";
57 
58     /**
59      * Defines the maximum number of connections per route.
60      * This limit is interpreted by client connection managers
61      * and applies to individual manager instances.
62      * <p>
63      * This parameter expects a value of type {@link ConnPerRoute}.
64      * </p>
65      */
66     public static final String MAX_CONNECTIONS_PER_ROUTE = "http.conn-manager.max-per-route";
67 
68     /**
69      * Defines the maximum number of connections in total.
70      * This limit is interpreted by client connection managers
71      * and applies to individual manager instances.
72      * <p>
73      * This parameter expects a value of type {@link Integer}.
74      * </p>
75      */
76     public static final String MAX_TOTAL_CONNECTIONS = "http.conn-manager.max-total";
77 
78 }
79