True when this media-type is not character-based.
Java API
Java API
True when this media-type is generally compressible.
The main-type of this media-type.
Java API
Java API
The sub-type of this media-type.
Turns the media type into a content type with the given charset.
Turns the media type into a content type with the given charset.
JAVA API
Turns the media type into a content type without specifying a charset.
Turns the media type into a content type without specifying a charset.
This is generally NOT what you want, since you're hiding the actual character encoding of your content, making decoding it possibly ambiguous.
Consider using toContentType(charset: HttpCharset) instead.
JAVA API
Creates a media-range from this media-type with a given qValue.
JAVA API
Constructs a ContentTypeRange
from this instance and the given charset.
Constructs a ContentTypeRange
from this instance and the given charset.
Turns the media type into a content type without specifying a charset.
Turns the media type into a content type without specifying a charset.
This is generally NOT what you want, since you're hiding the actual character encoding of your content, making decoding it possibly ambiguous.
Consider using toContentType(charset: HttpCharset) instead.
truncates Double qValue to float and returns a new instance with this qValue set
truncates Double qValue to float and returns a new instance with this qValue set
(withOpenCharset: MediaRange).isApplication
(withOpenCharset: MediaRange).isAudio
(withOpenCharset: MediaRange).isImage
(withOpenCharset: MediaRange).isMessage
(withOpenCharset: MediaRange).isMultipart
(withOpenCharset: MediaRange).isText
(withOpenCharset: MediaRange).isVideo
(withOpenCharset: MediaRange).mainType()
(withOpenCharset: MediaRange).params
(withOpenCharset: MediaRange).value
Returns a copy of this instance with the params replaced by the given ones.
Returns a copy of this instance with the params replaced by the given ones.
If the given map contains a "q" value the qValue
member is (also) updated.
(withOpenCharset: MediaRange).withParams(params)
truncates Double qValue to float and returns a new instance with this qValue set
truncates Double qValue to float and returns a new instance with this qValue set
(withOpenCharset: MediaRange).withQValue(qValue)
(withOpenCharset: MediaRange).withQValue(qValue)