Class CombinedMediaType.EffectiveMediaType
java.lang.Object
org.glassfish.jersey.internal.routing.CombinedMediaType.EffectiveMediaType
- Enclosing class:
- CombinedMediaType
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 Summary
ConstructorsConstructorDescriptionEffectiveMediaType
(MediaType mediaType) EffectiveMediaType
(MediaType mediaType, boolean fromMessageBodyProviders) Creates new instance withmediaType
and flag indicating the origin of the mediaType.EffectiveMediaType
(String mediaTypeValue) -
Method Summary
Modifier and TypeMethodDescriptionboolean
ReturnsMediaType
.int
hashCode()
boolean
Return flag value whether theMediaType
was not defined by annotation and therefore was derived from Message Body Providers.boolean
Returns True if SubType ofMediaType
was originally defined as wildcard.boolean
Returns true if Type ofMediaType
was originally defined as wildcard.toString()
-
Constructor Details
-
EffectiveMediaType
Creates new instance withmediaType
and flag indicating the origin of the mediaType.- Parameters:
mediaType
- The media type.fromMessageBodyProviders
- True ifmediaType
was derived fromMessageBodyWorkers
.
-
EffectiveMediaType
- Parameters:
mediaTypeValue
- The string media type.
-
EffectiveMediaType
- Parameters:
mediaType
- The media type.
-
-
Method Details
-
isWildcardType
public boolean isWildcardType()Returns true if Type ofMediaType
was originally defined as wildcard. -
isWildcardSubType
public boolean isWildcardSubType()Returns True if SubType ofMediaType
was originally defined as wildcard. -
getMediaType
ReturnsMediaType
.- Returns:
- Media type.
-
isDerived
public boolean isDerived()Return flag value whether theMediaType
was not defined by annotation and therefore was derived from Message Body Providers.- Returns:
true
if theMediaType
was not defined by annotation and therefore was derived from Message Body Providers,false
otherwise.
-
toString
-
equals
-
hashCode
public int hashCode()
-