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 Mueller (JIRA)" <ji...@apache.org> on 2009/12/21 10:04:53 UTC

[jira] Issue Comment Edited: (CAMEL-1530) Upgrade camel-http to use httpclient 4.0

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

Christian Mueller edited comment on CAMEL-1530 at 12/21/09 1:04 AM:
--------------------------------------------------------------------

@Claus, I updated the HttpComponents createEndpoint method to

{code}
Map<String, Object> httpClientProperties = IntrospectionSupport.extractProperties(parameters, "httpClient.");
for (Iterator<Map.Entry<String, Object>> it = httpClientProperties.entrySet().iterator(); it.hasNext();) {
    Map.Entry<String, Object> entry = it.next();
    String name = entry.getKey();
    clientParams.setParameter(name, httpClientProperties.get(name));
}
{code}

so, all httpClient options, provided in the endpoint url, will be set as HttpClient patameter. I have to check whether or not it is a problem for int, long, ... parameters.

My understanding how the HttpClient works is, that it takes the parameter he knows for some configurations and ignore the unknown parameters.

Regards,
Christian

      was (Author: muellerc):
    @Claus, I updated the HttpComponents createEndpoint method to

{code}
Map<String, Object> httpClientProperties = IntrospectionSupport.extractProperties(parameters, "httpClient.");
for (Iterator<Map.Entry<String, Object>> it = httpClientProperties.entrySet().iterator(); it.hasNext();) {
    Map.Entry<String, Object> entry = it.next();
    String name = entry.getKey();
    clientParams.setParameter(name, httpClientProperties.get(name));
}
{code}

so, all httpClient options, provided in the endpoint url, will be set as HttpClient patameter. I have to check whether or not it is a problem for int, long, ... parameters.

My understanding how the HttpClient works is, that it takes the parameter he knows fro some configurations and ignore the unknown parameters.

Regards,
Christian
  
> 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.