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 SummaryConstructors
- 
Method SummaryModifier 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- 
MediaRangepublic MediaRange()
 
- 
- 
Method Details- 
mainTypeReturns the main-type this media-range matches.
- 
qValuepublic abstract float qValue()Returns the qValue of this media-range.
- 
matchesChecks if this range matches a given media-type.
- 
getParamsReturns a Map of the parameters of this media-range.
- 
withQValueReturns a copy of this instance with a changed qValue.
 
-