camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-1084) missing method requestBodyAndHeaders in class ProducerTemplate
Date Thu, 13 Nov 2008 09:04:05 GMT

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

Claus Ibsen commented on CAMEL-1084:
------------------------------------

Just need to backport CAMEL-1065 to 1.5.1

> missing method requestBodyAndHeaders in class ProducerTemplate
> --------------------------------------------------------------
>
>                 Key: CAMEL-1084
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1084
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 1.4.0
>         Environment: XP, Tomcat 5.5.17, JDK sun 1.5.06
>            Reporter: Guillaume Lundy
>            Priority: Minor
>
> Hi, 
> In class ProducerTemplate, to perform an InOnly Request, we can use 
>    Object sendBodyAndHeader(String endpoint,
>                                          ExchangePattern pattern,
>                                          final Object body,
>                                          final String header,
>    If we have only a single header 
>   and
>     Object sendBodyAndHeaders(String endpointUri,
>                                            final Object body,
>                                            final Map<String, Object>
> headers)
>   If we have multiple headers.
>  
> To perform InOut Requests, it is recommended to use requestXXX method.
> The only method requestXXX that exist is with a single hearder (no 's' at the
> end of the method)
>    Object requestBodyAndHeader(String endpointUri, Object body, String
> header, Object headerValue);
> So, we cannot perform a request with multiple headers.
> The following method is missing:
>    Object requestBodyAndHeaders   (with a 's' at the end) 
> Regards, Guillaume

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


Mime
View raw message