@Header should have a value default so you do not have to set the name attribute
--------------------------------------------------------------------------------
Key: CAMEL-1378
URL: https://issues.apache.org/activemq/browse/CAMEL-1378
Project: Apache Camel
Issue Type: Improvement
Components: camel-core
Affects Versions: 1.6.0
Reporter: Claus Ibsen
Assignee: Claus Ibsen
Fix For: 2.0.0
Doing this bean binding:
{code}
public List<String> route(@XPath("/customer/id") String customerId,
@Header("Location") String location, Document body) {
{code}
The @Header does not have a default value, so you have to do this to get it to
work:
{code}
public List<String> route(@XPath("/customer/id") String customerId,
@Header(name = "Location") String location, Document body) {
{code}
So we should support you do not have to set the name attribute.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.