Package eu.cloudhopper.mc.annotations
Annotation Interface HeaderParam
Binds a method parameter to an HTTP request header value. The value is
converted from its string form to the parameter's declared type.
Usage:
public String handle(@HeaderParam("X-Auth-Token") String token) { ... }
- See Also:
-
Required Element Summary
Required Elements
-
Element Details
-
value
String valueThe name of the HTTP header to bind. UnlikePathParamandQueryParam, this is required — header names are rarely valid Java identifiers, so there is no fallback to the parameter name.- Returns:
- the header name
-