public final class CombinedMediaType extends Object
Modifier and Type | Class and Description |
---|---|
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 |
---|---|
static Comparator<CombinedMediaType> |
COMPARATOR
Comparator used to compare
CombinedMediaType . |
static CombinedMediaType |
NO_MATCH
Constant combined type representing no match.
|
Modifier and Type | Method and Description |
---|---|
static CombinedMediaType |
create(MediaType clientType,
CombinedMediaType.EffectiveMediaType serverType)
Create combined client/server media type.
|
MediaType |
getCombinedType()
Get combined client/server
MediaType , stripped of q and qs parameters. |
String |
toString() |
public static final CombinedMediaType NO_MATCH
public static final 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.public MediaType getCombinedType()
MediaType
, stripped of q and qs parameters.public static CombinedMediaType create(MediaType clientType, CombinedMediaType.EffectiveMediaType serverType)
NO_MATCH
is returned.clientType
- client-side media type.serverType
- server-side media type.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.