- Type Parameters:
T
- The type of the Accept-* header value.
- All Superinterfaces:
Predicate<T>
- All Known Implementing Classes:
MediaType
API to model HTTP content negotiation using
Accept-*
request headers. (RFC 7231 and RFC 2295)
It extends Predicate
for smooth integration with standard functional APIs.
-
Field Summary
-
Method Summary
-
Field Details
-
QUALITY_FACTOR_PARAMETER
The media type quality factor ("q") parameter name.- See Also:
-
WILDCARD_VALUE
The wildcard value "*" used by standard in several headers.- See Also:
-
-
Method Details
-
qualityFactor
double qualityFactor()Gets quality factor parameter ("q") as a double value. If missing, then returns1.0
- Returns:
- Quality factor parameter.
-