[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to