Class MediaRange
java.lang.Object
org.apache.pekko.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 StringmainType()Returns the main-type this media-range matches.abstract booleanChecks if this range matches a given media-type.abstract floatqValue()Returns the qValue of this media-range.abstract MediaRangewithQValue(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.
-