You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2009/02/24 17:22:59 UTC
[jira] Created: (CAMEL-1378) @Header should have a value default so
you do not have to set the name attribute
@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.
[jira] Resolved: (CAMEL-1378) @Header should have a value default
so you do not have to set the name attribute
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-1378.
--------------------------------
Resolution: Fixed
Committed revision 747428.
Fixed @Property as well
> @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.