final class CombinedMediaType
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
CombinedMediaType.EffectiveMediaType
Media type extended by flag indicating whether media type was
obtained from user annotations Consumes or Produces or has no
annotation and therefore was derived from MessageBodyWorkers . |
Modifier and Type | Field and Description |
---|---|
(package private) javax.ws.rs.core.MediaType |
combinedType
Combined client/server media type, stripped of q and qs parameters.
|
(package private) static java.util.Comparator<CombinedMediaType> |
COMPARATOR
Comparator used to compare
CombinedMediaType . |
(package private) int |
d
Distance of the combined media types.
|
(package private) static CombinedMediaType |
NO_MATCH
Constant combined type representing no match.
|
(package private) int |
q
Client-specified media type quality.
|
(package private) int |
qs
Server-specified media type quality.
|
Modifier | Constructor and Description |
---|---|
private |
CombinedMediaType(javax.ws.rs.core.MediaType combinedType,
int q,
int qs,
int d) |
Modifier and Type | Method and Description |
---|---|
private static int |
b2i(boolean b) |
(package private) static CombinedMediaType |
create(javax.ws.rs.core.MediaType clientType,
CombinedMediaType.EffectiveMediaType serverType)
Create combined client/server media type.
|
private static int |
matchedWildcards(javax.ws.rs.core.MediaType clientMt,
CombinedMediaType.EffectiveMediaType serverMt) |
java.lang.String |
toString() |
static final CombinedMediaType NO_MATCH
final javax.ws.rs.core.MediaType combinedType
final int q
final int qs
final int d
MediaType.WILDCARD_TYPE
and the other one is a concrete media type.
static final java.util.Comparator<CombinedMediaType> COMPARATOR
CombinedMediaType
. The comparator sorts the elements of list
in the ascending order from the most appropriate to the least appropriate combined media type.private CombinedMediaType(javax.ws.rs.core.MediaType combinedType, int q, int qs, int d)
private static int matchedWildcards(javax.ws.rs.core.MediaType clientMt, CombinedMediaType.EffectiveMediaType serverMt)
private static int b2i(boolean b)
static CombinedMediaType create(javax.ws.rs.core.MediaType clientType, CombinedMediaType.EffectiveMediaType serverType)
NO_MATCH
is returned.clientType
- client-side media type.serverType
- server-side media type.public java.lang.String toString()
toString
in class java.lang.Object