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