users@jersey.java.net

Re: [Jersey] A Jersey Client doing HTTP Cache

From: Imran M Yousuf <imyousuf_at_smartitengineering.com>
Date: Tue, 7 Sep 2010 21:26:43 +0600

On Tue, Sep 7, 2010 at 1:48 PM, Paul Sandoz <Paul.Sandoz_at_oracle.com> wrote:
>
>>>
>>> <snip />
>> of, thus the rewrite. If the current version works fairly I will try
>> to incorporate all rest of the features of Apache HTTP Jersey Client.
>
> Yes, parity with the existing properties would be nice.
>

Hi Paul,

Totally agree!

>
>> I will need some guidance in terms of how to extend fruitfully. It
>> would be extremely helpful for usage if we can support the same set of
>> properties.
>>
>
> Perhaps one way to achieve this is to have
>
>  class CachedApacheHttpClient  extends ApacheHttpClient { ... }
>
> and
>
>  class CachedApacheHttpClientHandler extends ApacheHttpClientHandler { ... }
>
> the former will create an instance of the latter to register with the
> ApacheHttpClient. Given what you say there may not be much that can be
> shared by the way of the ApacheHttpClientHandler implementation itself. If
> so we can refactor ApacheHttpClientHandler into an abstract base class for
> any shared functionality that would exist.
>

Something has clicked my mind which I will try to work on sometime
this weekend and/or the next to unify in a way that any client using
Apache Http Client can use it with the same config parameters.

Best regards,

Imran

> Paul.
>
>> Thank you, waiting for some guidance.
>>
>> Regards,
>>
>> Imran
>>
>>> Paul.
>>>
>>>
>>> On Sep 5, 2010, at 4:28 PM, Imran M Yousuf wrote:
>>>
>>>> Hi,
>>>>
>>>> I have been wanting a Jersey Client that handles HTTP Caching on the
>>>> client by default without me as a developer having to worry about
>>>> anything. And I am happy to say that we do have once such client which
>>>> we hope does serve the purpose.
>>>> http://code.google.com/p/smart-util/wiki/JerseyCacheClient
>>>> Details about the source code is at -
>>>> http://code.google.com/p/smart-util/wiki/SourceCode
>>>>
>>>> I would be extremely grateful if you would kindly help me test it out
>>>> by replacing current client of your project with this client. I would
>>>> welcome any new feature requests, not to mention contribution, and we
>>>> want to make the client production ready so bugs would be attended
>>>> with urgency. Any queries are welcome.
>>>>
>>>> Thank you in advance.
>>>>
>>>> --
>>>> Imran M Yousuf
>>>> Blog: http://imyousuf-tech.blogs.smartitengineering.com/
>>>> Mobile: +880-1711402557
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>> Blog: http://imyousuf-tech.blogs.smartitengineering.com/
>> Mobile: +880-1711402557
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> 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
Blog: http://imyousuf-tech.blogs.smartitengineering.com/
Mobile: +880-1711402557