T - The type of the Accept-* header value.public interface AcceptPredicate<T>
extends java.util.function.Predicate<T>
Accept-* request headers. (RFC 7231 and RFC 2295)
It extends Predicate for smooth integration with standard functional APIs.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
QUALITY_FACTOR_PARAMETER
The media type quality factor ("q") parameter name.
|
static java.lang.String |
WILDCARD_VALUE
The wildcard value "*" used by standard in several headers.
|
| Modifier and Type | Method and Description |
|---|---|
double |
qualityFactor()
Gets quality factor parameter ("q") as a double value.
|
static final java.lang.String QUALITY_FACTOR_PARAMETER
static final java.lang.String WILDCARD_VALUE
double qualityFactor()
1.0Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.