Class RestHeaders
java.lang.Object
com.svenruppert.jsentinel.rest.RestHeaders
Helpers for working with
RestRequest headers.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringStandardWWW-Authenticateresponse header name (RFC 7235). -
Method Summary
Modifier and TypeMethodDescriptionfirst(RestRequest request, String name) Case-insensitive lookup of the first matching header value.
-
Field Details
-
WWW_AUTHENTICATE
StandardWWW-Authenticateresponse header name (RFC 7235).- See Also:
-
-
Method Details
-
first
Case-insensitive lookup of the first matching header value.- Parameters:
request- the requestname- header name- Returns:
- the value, or empty if absent / blank
-