1b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien/* 2b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien * Copyright 2008 Sean Sullivan 3b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien * 4b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien * Licensed under the Apache License, Version 2.0 (the "License"); 5b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien * you may not use this file except in compliance with the License. 6b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien * You may obtain a copy of the License at 7b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien * 8b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien * http://www.apache.org/licenses/LICENSE-2.0 9b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien * 10b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien * Unless required by applicable law or agreed to in writing, software 11b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien * distributed under the License is distributed on an "AS IS" BASIS, 12b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien * See the License for the specific language governing permissions and 14b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien * limitations under the License. 15b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien */ 16b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien 17b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembienpackage net.oauth.client.httpclient4; 18b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien 19b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembienimport java.net.URL; 20b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien 21b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien/** 22b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien * 23b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien * A source of Apache HttpClient 4 objects. 24b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien * 25b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien * This class relies on <a href="http://hc.apache.org">Apache HttpClient</a> 26b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien * version 4. 27b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien * 28b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien * @author Sean Sullivan 29b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien * @hide 30b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien */ 31b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembienpublic interface HttpClientPool { 32b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien 33b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien /** Get the appropriate HttpClient for sending a request to the given URL. */ 34b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien public org.apache.http.client.HttpClient getHttpClient(URL server); 35b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien 36b852fcf48a8909164d7f323dd02a35d2a8056a61Nico Sallembien} 37