Annotation Interface Header


@Retention(RUNTIME) @Documented @Target(PARAMETER) public @interface Header
Marks a method parameter as a named header from the inbound Message when Camel performs bean binding.

The value() attribute names the header to inject. Camel converts the header value to the declared parameter type via the TypeConverter infrastructure. If the header is absent the parameter receives null (or the primitive default).

See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Name of header
  • Element Details

    • value

      String value
      Name of header