Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 60254 invoked from network); 24 Jan 2006 15:24:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Jan 2006 15:24:48 -0000 Received: (qmail 19010 invoked by uid 500); 24 Jan 2006 15:24:47 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 18985 invoked by uid 500); 24 Jan 2006 15:24:46 -0000 Mailing-List: contact httpclient-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: "HttpClient User Discussion" Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-user@jakarta.apache.org Received: (qmail 18973 invoked by uid 99); 24 Jan 2006 15:24:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2006 07:24:46 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=NO_REAL_NAME,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of klaus.kopruch@materna.de designates 193.96.115.65 as permitted sender) Received: from [193.96.115.65] (HELO relay.materna.de) (193.96.115.65) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2006 07:24:44 -0800 Received: from ganymed.materna.de (ganymed.materna.de [139.2.34.141]) by relay.materna.de (Postfix) with ESMTP id B45F767E9 for ; Tue, 24 Jan 2006 16:24:23 +0100 (MET) Received: from ganymed.materna.de (localhost [127.0.0.1]) by mail.materna.de (Postfix) with ESMTP id 7F07024D8E for ; Tue, 24 Jan 2006 16:24:23 +0100 (MET) Received: from ntexc1buc.do-office.buc.materna.com (ntexc1buc.do-office.buc.materna.com [139.2.241.21]) by mail.materna.de (Postfix) with ESMTP id 67D7A24A58 for ; Tue, 24 Jan 2006 16:24:23 +0100 (MET) Received: by ntexc1buc.do-office.buc.materna.com with Internet Mail Service (5.5.2657.72) id ; Tue, 24 Jan 2006 16:24:23 +0100 Message-ID: From: klaus.kopruch@Materna.de To: httpclient-user@jakarta.apache.org Subject: minimum object creation Date: Tue, 24 Jan 2006 16:24:20 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello * ! I'm developing a java component which sends requests to multiple http servers. I have the requirement that the following properties have to be adjustable per host/port: + basic authentication (usr/pwd) + http version 1.0 or 1.1 + proxy using + socket and connection timeout + max. connections per host I dont want to create more objects than really needed, but I think I have to create the following instances: + HttpClient per host: basic authentication (usr/pwd) + HostConfiguration per host: proxy using + HttpConnectionManager per host: socket and connection timeout, max. connections per host + HttpMethod per request Do I have to create at least these instances, or is it possible to have only one instance of HttpClient ? If I could set the socket and connection timeout in the HostConfiguration I can manage with only one instance of HttpConnectionManager, but this seems not to be possible ? Any suggestions ? Thanks Klaus --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org