Point notation in @Header value

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Point notation in @Header value

horyna
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()
}
Reply | Threaded
Open this post in threaded view
|

Re: Point notation in @Header value

Claus Ibsen-2
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 <[hidden email]> 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: [hidden email]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen