Annotation Interface Headers


@Retention(RUNTIME) @Documented @Target(PARAMETER) public @interface Headers
Marks a method parameter as the entire header map of the inbound Message when Camel performs bean binding.

The parameter type should be Map<String, Object> (or a compatible super-type). Unlike Header, which injects a single named header, @Headers gives the method direct access to all headers at once, useful when the set of headers to process is dynamic or unknown at compile time.

See Also: