Class CombinedMediaType.EffectiveMediaType
- java.lang.Object
-
- org.glassfish.jersey.internal.routing.CombinedMediaType.EffectiveMediaType
-
- Enclosing class:
- CombinedMediaType
public static class CombinedMediaType.EffectiveMediaType extends Object
Media typeextended by flag indicating whether media type was obtained from user annotationsConsumesorProducesor has no annotation and therefore was derived fromMessageBodyWorkers.
-
-
Constructor Summary
Constructors Constructor Description EffectiveMediaType(MediaType mediaType)EffectiveMediaType(MediaType mediaType, boolean fromMessageBodyProviders)Creates new instance withmediaTypeand flag indicating the origin of the mediaType.EffectiveMediaType(String mediaTypeValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)MediaTypegetMediaType()ReturnsMediaType.inthashCode()booleanisDerived()Return flag value whether theMediaTypewas not defined by annotation and therefore was derived from Message Body Providers.booleanisWildcardSubType()Returns True if SubType ofMediaTypewas originally defined as wildcard.booleanisWildcardType()Returns true if Type ofMediaTypewas originally defined as wildcard.StringtoString()
-
-
-
Constructor Detail
-
EffectiveMediaType
public EffectiveMediaType(MediaType mediaType, boolean fromMessageBodyProviders)
Creates new instance withmediaTypeand flag indicating the origin of the mediaType.- Parameters:
mediaType- The media type.fromMessageBodyProviders- True ifmediaTypewas derived fromMessageBodyWorkers.
-
EffectiveMediaType
public EffectiveMediaType(String mediaTypeValue)
- Parameters:
mediaTypeValue- The string media type.
-
EffectiveMediaType
public EffectiveMediaType(MediaType mediaType)
- Parameters:
mediaType- The media type.
-
-
Method Detail
-
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.
-
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.
-
-