[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ecf-dev] rest API work
- From: Andre Dietisheim <dietisheim@xxxxxxxxx>
- Date: Mon, 07 Dec 2009 14:20:51 +0100
- Delivered-to: email@example.com
- User-agent: Thunderbird 220.127.116.11 (X11/20090817)
-----BEGIN PGP SIGNED MESSAGE-----
> This can/could be fairly easily done (i.e make it an option to create a
> new HttpClient or reuse an existing one), but it would be an addition.
> Please open an enhancement request to this effect (i.e. 'reuse
> httpclient for rest calls' or something like that), and we'll get to it.
I filed a new bugzilla entry:
I wonder if there's any good reason to create a new instance on each
call. What prohibits ECF to reuse a httpClient instance? Do I miss
Just tell me wich solution you'll opt for and I'll be glad to provider a
>> - - I need to be able to elaborate on the specific HTTP error.In some
>> cases my REST service answers 404 to signal me that there's no
>> information present. I'll have to react by not showing any information
>> for this call. On the other hand I'd have to popup an error for any
>> other error that may occur (authentication, transport etc.). I'd suggest
>> to pass an IStatus to the ECFException instead of a plain string. I'll
>> then be able to fetch it's code.
> The newly revised RestClientContainer and RestClientService classes
> can/would/do allow subclassing to implement alternative strategies for
> particular rest APIs...e.g. for handling http responses in custom ways
> for a particular rest api. That is, it's intended that for *some* rest
> clients, subclasses of RestClientContainer and RestClientService might
> be created to customize the runtime behavior (since rest is more a
> family of protocols than it is a single protocol).
> In addition, it's possible that we could introduce some more flexibility
> into these classes....e.g. RestClientService...through some
> generalization of the protected and public methods...or by introducing
> interfaces for delegation.
sound good! I'll catch up with the latest incarnation and try to
subclass to get what I need.
On the other hand, I wonder here too, if there's any good reason to
deliberately loose the error code. What do I miss?
Thanks + Cheers!
Head of Eclipse Development
Puzzle ITC GmbH
Telefon +41 31 370 22 00
Fax +41 31 370 22 01
Mobile +41 76 423 03 02
Abonnieren Sie unsere News:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----