Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 97325 invoked from network); 19 Feb 2009 20:31:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Feb 2009 20:31:51 -0000 Received: (qmail 4689 invoked by uid 500); 19 Feb 2009 20:31:43 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 4596 invoked by uid 500); 19 Feb 2009 20:31:43 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 4543 invoked by uid 99); 19 Feb 2009 20:31:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Feb 2009 12:31:42 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [217.150.250.44] (HELO ok2consulting.nine.ch) (217.150.250.44) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Feb 2009 20:31:32 +0000 Received: by ok2consulting.nine.ch (Postfix, from userid 1002) id 281F519856B; Thu, 19 Feb 2009 21:31:11 +0100 (CET) Received: from [192.168.1.102] (84-75-103-4.dclient.hispeed.ch [84.75.103.4]) by ok2consulting.nine.ch (Postfix) with ESMTP id 2B6B5198569 for ; Thu, 19 Feb 2009 21:31:09 +0100 (CET) Message-ID: <499DC179.7090507@apache.org> Date: Thu, 19 Feb 2009 21:30:49 +0100 From: Oleg Kalnichevski User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: HttpClient User Discussion Subject: Re: HTTP Client 4.0: proxy settings? References: <332412.22705.qm@web23002.mail.ird.yahoo.com> In-Reply-To: <332412.22705.qm@web23002.mail.ird.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on ok2consulting.nine.ch X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.3 Florent Georges wrote: > Oleg Kalnichevski wrote: > >> If you want HttpClient to use proxy system properties, try out >> the route planner implementation based on java.net.ProxySelector > >> DefaultHttpClient httpclient = new DefaultHttpClient(); >> ProxySelectorRoutePlanner routePlanner = new >> ProxySelectorRoutePlanner( >> httpclient.getConnectionManager().getSchemeRegistry(), >> ProxySelector.getDefault()); >> httpclient.setRoutePlanner(routePlanner); > > That works great. Thanks to both of you! > > BTW, why such useful methods are not on the HttpClient interface, but rather on the AbstractHttpClient class (not even in a second interface)? Is there any rational for that choice? > Mainly to make it simpler by hiding non-essential details, thus easier to implement and decorate. Oleg > Thanks again, regards, > --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org