camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Lundy (JIRA)" <>
Subject [jira] Created: (CAMEL-1084) missing method requestBodyAndHeaders in class ProducerTemplate
Date Thu, 13 Nov 2008 08:54:05 GMT
missing method requestBodyAndHeaders in class ProducerTemplate

                 Key: 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

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 
    Object sendBodyAndHeaders(String endpointUri,
                                           final Object body,
                                           final Map<String, Object>
  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.

View raw message