Annotation Interface EventHeader
Annotation which indicates that a method parameter should be bound to a event header.
- Author:
- Janne Valkealahti
-
Optional Element Summary
-
Element Details
-
value
Alias forname()
.- Returns:
- the header name
- Default:
- ""
-
name
The name of the request header to bind to.- Returns:
- the header name
- Default:
- ""
-
required
boolean requiredWhether the header is required.Default is
true
, leading to an exception if the header is missing. Switch this tofalse
if you prefer anull
value in case of a header missing.- Returns:
- the required flag
- Default:
- true
-