You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by James Green <ja...@gmail.com> on 2015/02/19 11:52:37 UTC

http4.html Possible error

Halfway down the page under "Configuring the URI to call" the example is
given:

from("direct:start")
  .setHeader(Exchange.HTTP_URI, constant("http://newhost"))
  .to("http4://oldhost");

Under it states:

"*Where Constants is the class,
org.apache.camel.component.http4.Constants."*

Is this correct as the header accepts String and usually constant() is
pretty well used elsewhere?

Thanks,

James

Re: http4.html Possible error

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Yes that was wrong, I am removing that wrong statement

On Thu, Feb 19, 2015 at 11:52 AM, James Green <ja...@gmail.com> wrote:
> Halfway down the page under "Configuring the URI to call" the example is
> given:
>
> from("direct:start")
>   .setHeader(Exchange.HTTP_URI, constant("http://newhost"))
>   .to("http4://oldhost");
>
> Under it states:
>
> "*Where Constants is the class,
> org.apache.camel.component.http4.Constants."*
>
> Is this correct as the header accepts String and usually constant() is
> pretty well used elsewhere?
>
> Thanks,
>
> James



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/