Package akka.http.javadsl.model
Class MediaRange
java.lang.Object
akka.http.javadsl.model.MediaRange
- Direct Known Subclasses:
MediaRange
Represents an Http media-range. A media-range either matches a single media-type
or it matches all media-types of a given main-type. Each range can specify a qValue
or other parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a Map of the parameters of this media-range.abstract String
mainType()
Returns the main-type this media-range matches.abstract boolean
Checks if this range matches a given media-type.abstract float
qValue()
Returns the qValue of this media-range.abstract MediaRange
withQValue
(float qValue) Returns a copy of this instance with a changed qValue.
-
Constructor Details
-
MediaRange
public MediaRange()
-
-
Method Details
-
mainType
Returns the main-type this media-range matches. -
qValue
public abstract float qValue()Returns the qValue of this media-range. -
matches
Checks if this range matches a given media-type. -
getParams
Returns a Map of the parameters of this media-range. -
withQValue
Returns a copy of this instance with a changed qValue.
-