@Target(value=PARAMETER)
@Retention(value=RUNTIME)
@Documented
public @interface Header
Annotation indicating that a method parameter's value should be
retrieved from the message headers. The value of the annotation
can either be a header name (e.g., 'foo') or SpEL expression
(e.g., 'payload.getCustomerId()') which is quite useful when
the name of the header has to be dynamically computed. It also
provides an optional 'required' property which
specifies whether the attribute value must be available within
the header. The default value for 'required' is true
.
- Author:
- Mark Fisher