Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 11221 invoked from network); 28 Jul 2010 14:03:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Jul 2010 14:03:43 -0000 Received: (qmail 15550 invoked by uid 500); 28 Jul 2010 14:03:43 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 15272 invoked by uid 500); 28 Jul 2010 14:03:41 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 14855 invoked by uid 99); 28 Jul 2010 14:03:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Jul 2010 14:03:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Jul 2010 14:03:38 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6SE3G0I017063 for ; Wed, 28 Jul 2010 14:03:16 GMT Message-ID: <33243544.45001280325796718.JavaMail.jira@thor> Date: Wed, 28 Jul 2010 10:03:16 -0400 (EDT) From: "Jonathan Moore (JIRA)" To: dev@hc.apache.org Subject: [jira] Updated: (HTTPCLIENT-972) caching module should use HttpParams-style configuration In-Reply-To: <14944579.44851280325017762.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HTTPCLIENT-972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Moore updated HTTPCLIENT-972: -------------------------------------- Attachment: cache-params.patch The attached patch addresses this issue by creating an org.apache.http.client.cache.params package and moving configuration parameters into that (I used the AuthParams as a template for this). One note is that this patch breaks backwards-compatibility, but I think this puts us in a good spot going forward with being able to extend HttpParams as needed, and if we are going to do this, we ought to do it before GA. This patch is contributed to the ASF with the permission of my employer. > caching module should use HttpParams-style configuration > -------------------------------------------------------- > > Key: HTTPCLIENT-972 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-972 > Project: HttpComponents HttpClient > Issue Type: Improvement > Components: Cache > Affects Versions: 4.1 Alpha2 > Reporter: Jonathan Moore > Priority: Minor > Attachments: cache-params.patch > > > The constructor for CachingHttpClient currently accepts combinations of: > * HttpCache > * HttpClient > * integer for max object size in bytes > As I started looking at being able to configure this for behaving as a non-shared cache, I realized that we actually want to be replacing that last int with an HttpParams argument, and tracking all the various options in that style. I have a patch with this update which I will upload shortly. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org