public static class CombinedMediaType.EffectiveMediaType extends Object
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
.Constructor and Description |
---|
EffectiveMediaType(MediaType mediaType)
|
EffectiveMediaType(MediaType mediaType,
boolean fromMessageBodyProviders)
Creates new instance with
mediaType and flag indicating the origin of
the mediaType. |
EffectiveMediaType(String mediaTypeValue)
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
MediaType |
getMediaType()
Returns
MediaType . |
int |
hashCode() |
boolean |
isDerived()
Return flag value whether the
MediaType was not defined by annotation and therefore was derived from
Message Body Providers. |
boolean |
isWildcardSubType()
Returns True if SubType of
MediaType was originally defined as wildcard. |
boolean |
isWildcardType()
Returns true if Type of
MediaType was originally defined as wildcard. |
String |
toString() |
public EffectiveMediaType(MediaType mediaType, boolean fromMessageBodyProviders)
mediaType
and flag indicating the origin of
the mediaType.mediaType
- The media type.fromMessageBodyProviders
- True if mediaType
was derived from
MessageBodyWorkers
.public EffectiveMediaType(String mediaTypeValue)
mediaTypeValue
- The string media type.public EffectiveMediaType(MediaType mediaType)
mediaType
- The media type.public boolean isWildcardType()
MediaType
was originally defined as wildcard.public boolean isWildcardSubType()
MediaType
was originally defined as wildcard.public boolean isDerived()
MediaType
was not defined by annotation and therefore was derived from
Message Body Providers.true
if the MediaType
was not defined by annotation and therefore was derived from
Message Body Providers, false
otherwise.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.