[ 
https://issues.apache.org/activemq/browse/CAMEL-1530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56612#action_56612
 ] 

Claus Ibsen commented on CAMEL-1530:
------------------------------------

> So, if the so_timeout a String, we get a ClassCastException. There is no type 
> conversion. I don't know why the way to configure the HttpClient is so 
> inconvenient... 

Yeah converting between String, Integer, Boolean, etc. for parameters is 
somewhat trivial and it would mean the world for end users if they can provide 
the values in e.g. plain text types. Eg. load options from a properties file 
and have it passed in as parameters.

I assume HTTP framework may deal with it internally as HTTP headers is passed 
as Strings but they most likely need to convert to/from those String types.
For example HTTP Status code to a integer.

> Upgrade camel-http to use httpclient 4.0
> ----------------------------------------
>
>                 Key: CAMEL-1530
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1530
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-http
>    Affects Versions: 2.0-M1
>            Reporter: Claus Ibsen
>            Assignee: Christian Mueller
>             Fix For: 2.2.0
>
>
> Upgrading httpclient from 3.1 to 4.0 requires changes in the camel-http code 
> as the API has change quite a lot.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to