users@jersey.java.net

Re: [Jersey] A Jersey Client doing HTTP Cache

From: Imran M Yousuf <imyousuf_at_smartitengineering.com>
Date: Tue, 12 Oct 2010 19:11:49 +0600

On Tue, Oct 12, 2010 at 6:41 PM, Paul Sandoz <Paul.Sandoz_at_oracle.com> wrote:
>>> <skip />
>>>
>> I gave it a serious thought, but this could be done but won't be right
>> in theoretically!
>
> Is it because ApacheHttpClientHandler already defines an implementation?
> fair enough, i guess i don't consider this too theoretical :-)
>

The primary reason for this is CacheableClientHandler is independent
of Apache HttpClient and rather dependent on HTTPCache of HTTPCache4J
:).

>
>> One thing that could be done is we could extract an
>> abstract apache http client handler that does these settings in the
>> constructor, then the inheritance would be perfect.
>>
>
> Yes, we can do that. In fact in such cases the constructor could just be:
>
>  AbstractApacheHttpClientHandler(HttpClient client, ClientConfig config)
>
> Do you want to send me another patch :-)
>

I would be honored to send out another patch, will do it first thing
to tomorrow morning :).

Thank you,

Imran

> Paul.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>



-- 
Imran M Yousuf
Entrepreneur & CEO
Smart IT Engineering Ltd.
25/5B, Block F, Haji Chinu Miah Road Bylane
Joint Quarter, Mohammadpur
Dhaka - 1207, Bangladesh
Email: imran_at_smartitengineering.com
Twitter: @imyousuf - http://twitter.com/imyousuf
Blog: http://imyousuf-tech.blogs.smartitengineering.com/
Mobile: +880-1711402557