Interface MediaType

    • Method Detail

      • mainType

        java.lang.String mainType()
        The main-type of this media-type.
        Returns:
        (undocumented)
      • subType

        java.lang.String subType()
        The sub-type of this media-type.
        Returns:
        (undocumented)
      • isCompressible

        boolean isCompressible()
        True when this media-type is generally compressible.
        Returns:
        (undocumented)
      • binary

        boolean binary()
        True when this media-type is not character-based.
        Returns:
        (undocumented)
      • isApplication

        boolean isApplication()
      • isAudio

        boolean isAudio()
      • isImage

        boolean isImage()
      • isMessage

        boolean isMessage()
      • isMultipart

        boolean isMultipart()
      • isText

        boolean isText()
      • isVideo

        boolean isVideo()
      • toRange

        MediaRange toRange()
        Creates a media-range from this media-type.
        Returns:
        (undocumented)
      • toRange

        MediaRange toRange​(float qValue)
        Creates a media-range from this media-type with a given qValue.
        Parameters:
        qValue - (undocumented)
        Returns:
        (undocumented)