You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by horyna <ph...@centrum.cz> on 2013/05/10 15:03:49 UTC

Point notation in @Header value

Hi,

camel doesnot support point notation in @Header value?

Example:
public void
someMethod(@Header(value="instance.classmemberattribute.attribute") String
someValue)

class instance {
   public SomeClass getClassmemberattribute() 
}

class SomeClass {
  public getAttribute()
} 



--
View this message in context: http://camel.465427.n5.nabble.com/Point-notation-in-Header-value-tp5732274.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Point notation in @Header value

Posted by Claus Ibsen <cl...@gmail.com>.
No @Header is for referring to a header by its name

You can use @Simple @OGNL @Groovy etc to do method calls.

On Fri, May 10, 2013 at 3:03 PM, horyna <ph...@centrum.cz> wrote:
> Hi,
>
> camel doesnot support point notation in @Header value?
>
> Example:
> public void
> someMethod(@Header(value="instance.classmemberattribute.attribute") String
> someValue)
>
> class instance {
>    public SomeClass getClassmemberattribute()
> }
>
> class SomeClass {
>   public getAttribute()
> }
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Point-notation-in-Header-value-tp5732274.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen