Class Quality
- java.lang.Object
-
- org.glassfish.jersey.message.internal.Quality
-
public final class Quality extends Object
Quality parameter constants.- Author:
- Marek Potociar
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT
Default quality value.static int
MAXIMUM
Maximum quality value.static int
MINIMUM
Minimum quality value.static Comparator<Qualified>
QUALIFIED_COMPARATOR
A "highest first" qualified element comparator.static String
QUALITY_PARAMETER_NAME
Quality HTTP header parameter name.static String
QUALITY_SOURCE_PARAMETER_NAME
Quality source HTTP header parameter name.static Comparator<Integer>
QUALITY_VALUE_COMPARATOR
A "highest first" quality value comparator.
-
-
-
Field Detail
-
QUALIFIED_COMPARATOR
public static final Comparator<Qualified> QUALIFIED_COMPARATOR
A "highest first" qualified element comparator. An element with higher quality value will be sorted ahead of elements with lower quality value.
-
QUALITY_VALUE_COMPARATOR
public static final Comparator<Integer> QUALITY_VALUE_COMPARATOR
A "highest first" quality value comparator. A higher quality value will be sorted ahead of a lower quality value.
-
QUALITY_PARAMETER_NAME
public static final String QUALITY_PARAMETER_NAME
Quality HTTP header parameter name.- See Also:
- Constant Field Values
-
QUALITY_SOURCE_PARAMETER_NAME
public static final String QUALITY_SOURCE_PARAMETER_NAME
Quality source HTTP header parameter name.- See Also:
- Constant Field Values
-
MINIMUM
public static final int MINIMUM
Minimum quality value.- See Also:
- Constant Field Values
-
MAXIMUM
public static final int MAXIMUM
Maximum quality value.- See Also:
- Constant Field Values
-
DEFAULT
public static final int DEFAULT
Default quality value.- See Also:
- Constant Field Values
-
-