Class CombinedMediaType.EffectiveMediaType

    • Constructor Detail

      • EffectiveMediaType

        public EffectiveMediaType​(MediaType mediaType,
                                  boolean fromMessageBodyProviders)
        Creates new instance with mediaType and flag indicating the origin of the mediaType.
        Parameters:
        mediaType - The media type.
        fromMessageBodyProviders - True if mediaType was derived from MessageBodyWorkers.
      • EffectiveMediaType

        public EffectiveMediaType​(String mediaTypeValue)
        Creates new instance with mediaType which was obtained from user annotations Consumes or Produces.
        Parameters:
        mediaTypeValue - The string media type.
      • EffectiveMediaType

        public EffectiveMediaType​(MediaType mediaType)
        Creates new instance with mediaType which was obtained from user annotations Consumes or Produces.
        Parameters:
        mediaType - The media type.
    • Method Detail

      • isWildcardType

        public boolean isWildcardType()
        Returns true if Type of MediaType was originally defined as wildcard.
        Returns:
        Returns true if method Consumes or Produces was annotated with wildcard type (for example '*/*').
      • isWildcardSubType

        public boolean isWildcardSubType()
        Returns True if SubType of MediaType was originally defined as wildcard.
        Returns:
        Returns true if method Consumes or Produces was annotated with wildcard subtype (for example 'text/*').
      • isDerived

        public boolean isDerived()
        Return flag value whether the MediaType was not defined by annotation and therefore was derived from Message Body Providers.
        Returns:
        true if the MediaType was not defined by annotation and therefore was derived from Message Body Providers, false otherwise.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object