You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "James Carman (JIRA)" <ji...@apache.org> on 2013/09/28 17:22:02 UTC
[jira] [Commented] (CAMEL-6768) @Header @Body @Property bean
parameter binding - add mandatory option
[ https://issues.apache.org/jira/browse/CAMEL-6768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13780866#comment-13780866 ]
James Carman commented on CAMEL-6768:
-------------------------------------
We don't want to change the existing behavior, correct? I believe the current behavior for @Header would be equivalent to the mandatory = false case.
> @Header @Body @Property bean parameter binding - add mandatory option
> ---------------------------------------------------------------------
>
> Key: CAMEL-6768
> URL: https://issues.apache.org/jira/browse/CAMEL-6768
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: Future
>
>
> See
> http://stackoverflow.com/questions/18874641/add-string-to-camel-exchange-header-from-route?noredirect=1#comment27863978_18874641
> We could have an attribute mandatory = true, which is default true for these bean parameter annotations. Then people can set it to false, if a @Header is not mandatory (eg do not fail if the header is not present).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira