Spring Integration

org.springframework.integration.annotation
Annotation Type Header


@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 provides the header name, and the optional 'required' property specifies whether the attribute value must be available within the header. The default value for 'required' is true.

Author:
Mark Fisher

Optional Element Summary
 boolean required
           
 String value
           
 

value

public abstract String value
Default:
""

required

public abstract boolean required
Default:
true

Spring Integration

Copyright © 2010. All Rights Reserved.