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 withmediaTypeand flag indicating the origin of the mediaType.EffectiveMediaType(String mediaTypeValue) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnsMediaType.inthashCode()booleanReturn flag value whether theMediaTypewas not defined by annotation and therefore was derived from Message Body Providers.booleanReturns True if SubType ofMediaTypewas originally defined as wildcard.booleanReturns true if Type ofMediaTypewas originally defined as wildcard.toString()
-
Constructor Details
-
EffectiveMediaType
Creates new instance withmediaTypeand flag indicating the origin of the mediaType.- Parameters:
mediaType- The media type.fromMessageBodyProviders- True ifmediaTypewas 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 ofMediaTypewas originally defined as wildcard. -
isWildcardSubType
public boolean isWildcardSubType()Returns True if SubType ofMediaTypewas originally defined as wildcard. -
getMediaType
ReturnsMediaType.- Returns:
- Media type.
-
isDerived
public boolean isDerived()Return flag value whether theMediaTypewas not defined by annotation and therefore was derived from Message Body Providers.- Returns:
trueif theMediaTypewas not defined by annotation and therefore was derived from Message Body Providers,falseotherwise.
-
toString
-
equals
-
hashCode
public int hashCode()
-