You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by Christian Müller <ch...@gmail.com> on 2011/01/27 23:27:47 UTC
camel-http4 wiki page
By working on the upgrade to HttpClient 4.1 for the camel-http4 component I
was wondering where the wiki page is? I know I created the wiki page as I
developed this component some month ago. Any ideas?
Christian
Re: camel-http4 wiki page
Posted by Christian Müller <ch...@gmail.com>.
Apache HttpComponents also have an async client under development...
http://hc.apache.org/httpcomponents-asyncclient-dev/index.html
Re: camel-http4 wiki page
Posted by Claus Ibsen <cl...@gmail.com>.
On Sun, Jan 30, 2011 at 11:01 PM, Christian Müller
<ch...@gmail.com> wrote:
> Hello Claus!
>
> I added the missed wiki page and updated camel-http4 to use the Apache
> HttpClient 4.1.
> I realized that camel-http made some progression but camel-http4 not
> (camel-http4 was forked in Camel 2.2). :-(
> Do you remember what the reason was to provide a new component instead of
> "only" updating the existing one - maybe with API breaks? Do you remember
Yeah Apache Http Client 3.1 / 4.x is very different from end user perspective.
The API is not backwards compatible and 4.x has a now and very
confusing configuration model.
We tried upgrading 1 year ago and it was now possible. Also at that
time some features wasn't implemented in 4.x that existed in 3.1.
> whether HttpClient 4.0 doesn't support a feature HttpClient 3.x supports?
> If it's only the configuration of the httpClient options, I will check which
> options are affected. Also, users which uses the HttpClientConfigurer are
> also affected, because HttpClient is an interface in HttpClient 4.x. But
> maybe there are only a few changes we could add on the release notes (with a
> "migration plan") and only maintain the camel-http component (which use
> HttpClient 4.1) from Camel 2.7 onwards. It's really difficult to have two
> components in sync over a long time...
We should not migrate. We will keep camel-http and camel-http4 as 2
separate components.
Then end user can decide which they wanna use.
And they should co-exist, hence why camel-http4 uses http4/http4s in
the scheme name.
> If this is not an option for you, I will spend some time on camel-http4 in
> Camel 2.7 so that both components are as similar as possible.
>
> [1] https://issues.apache.org/jira/browse/CAMEL-2608
>
> Christian
>
Yeah it would be best if http and http4 have almost the same options
in the endpoint uri offered by Camel.
For example bridgeEndpoint and so forth.
But of course there could be never features in http4 which doesnt
existing in the old http component.
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Re: camel-http4 wiki page
Posted by Christian Müller <ch...@gmail.com>.
Hello Claus!
I added the missed wiki page and updated camel-http4 to use the Apache
HttpClient 4.1.
I realized that camel-http made some progression but camel-http4 not
(camel-http4 was forked in Camel 2.2). :-(
Do you remember what the reason was to provide a new component instead of
"only" updating the existing one - maybe with API breaks? Do you remember
whether HttpClient 4.0 doesn't support a feature HttpClient 3.x supports?
If it's only the configuration of the httpClient options, I will check which
options are affected. Also, users which uses the HttpClientConfigurer are
also affected, because HttpClient is an interface in HttpClient 4.x. But
maybe there are only a few changes we could add on the release notes (with a
"migration plan") and only maintain the camel-http component (which use
HttpClient 4.1) from Camel 2.7 onwards. It's really difficult to have two
components in sync over a long time...
If this is not an option for you, I will spend some time on camel-http4 in
Camel 2.7 so that both components are as similar as possible.
[1] https://issues.apache.org/jira/browse/CAMEL-2608
Christian
Re: camel-http4 wiki page
Posted by Claus Ibsen <cl...@gmail.com>.
On Fri, Jan 28, 2011 at 8:08 AM, Christian Müller
<ch...@gmail.com> wrote:
> Maybe I'm wrong... :-(
> However, I will check which options were not supported in 4.0.1 and maybe
> are supported in 4.1. If 4.1 supports all options camel-http has, we could
> replace the old camel-http (which use HttpClient 3.x) with this (what was
> the original plan).
> Otherwise I will add the missing pages...
>
No we should keep the existing camel-http component and wiki page.
Its using the old HttpClient 3.1 which end users know how to use and configure.
HttpClient 4.x is a lot different API and much more cumbersome to
configure and use.
It would not be possible for end users to easily migrate from
camel-http to camel-http4.
Hence why we keep it in camel-http4.
We should add a new wiki page for people who daunt to use the
HttpClient 4.x API.
For a great Http client API we should look at the async-http-client
project. That is really taking off.
https://github.com/AsyncHttpClient/async-http-client
There is a Camel JIRA ticket to create a new camel component for it.
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Re: camel-http4 wiki page
Posted by Christian Müller <ch...@gmail.com>.
Maybe I'm wrong... :-(
However, I will check which options were not supported in 4.0.1 and maybe
are supported in 4.1. If 4.1 supports all options camel-http has, we could
replace the old camel-http (which use HttpClient 3.x) with this (what was
the original plan).
Otherwise I will add the missing pages...
Re: camel-http4 wiki page
Posted by Richard Kettelerij <ri...@gmail.com>.
Are you sure? I looked through Confluence and the development mailinglist
(since the latter contains all Confluence changes) and couldn't find a HTTP4
component page either. Also the following JIRA mentions this page as a todo
item: https://issues.apache.org/jira/browse/CAMEL-2608
--
View this message in context: http://camel.465427.n5.nabble.com/camel-http4-wiki-page-tp3360572p3360609.html
Sent from the Camel Development mailing list archive at Nabble.com.