You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by kalyan <re...@gmail.com> on 2013/05/28 17:19:35 UTC

can httpClient.soTimeout be set through Header params ?

Hello,

I have the code working with "httpClient.soTimeout" in the following way:

from("servlet:///test")
   .process(new MyProcessor())
       
.to("http://localhost:8080/context??bridgeEndpoint=true&httpClient.soTimeout=1")

However, when I try to set "httpClient.soTimeout" in the following way, it
fails to work.
private class MyProcessor()
{
     public void process(final Exchange exchange) throws Exception
     {
          exchange.getIn().setHeader("httpClient.soTimeout", 1);
     }
}

Thanks in advance

-Kalyan



--
View this message in context: http://camel.465427.n5.nabble.com/can-httpClient-soTimeout-be-set-through-Header-params-tp5733365.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: can httpClient.soTimeout be set through Header params ?

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

You cannot set this with headers.

See this FAQ
http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html

On Tue, May 28, 2013 at 5:19 PM, kalyan <re...@gmail.com> wrote:
> Hello,
>
> I have the code working with "httpClient.soTimeout" in the following way:
>
> from("servlet:///test")
>    .process(new MyProcessor())
>
> .to("http://localhost:8080/context??bridgeEndpoint=true&httpClient.soTimeout=1")
>
> However, when I try to set "httpClient.soTimeout" in the following way, it
> fails to work.
> private class MyProcessor()
> {
>      public void process(final Exchange exchange) throws Exception
>      {
>           exchange.getIn().setHeader("httpClient.soTimeout", 1);
>      }
> }
>
> Thanks in advance
>
> -Kalyan
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/can-httpClient-soTimeout-be-set-through-Header-params-tp5733365.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
www.camelone.org: The open source integration conference.

Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen