Class MediaRanges.PredefinedMediaRange
java.lang.Object
org.apache.pekko.http.javadsl.model.MediaRange
org.apache.pekko.http.scaladsl.model.MediaRange
org.apache.pekko.http.scaladsl.model.MediaRanges.PredefinedMediaRange
- All Implemented Interfaces:
- Serializable,- LazyValueBytesRenderable,- Renderable,- WithQValue<MediaRange>,- scala.Equals,- scala.Product
- Enclosing class:
- MediaRanges
public abstract static class MediaRanges.PredefinedMediaRange
extends MediaRange
implements LazyValueBytesRenderable, scala.Product, Serializable
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.pekko.http.scaladsl.model.MediaRangeMediaRange.One, MediaRange.One$
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionmainType()Returns the main-type this media-range matches.scala.collection.immutable.Map<String,scala.runtime.Nothing$> params()floatqValue()Returns the qValue of this media-range.value()withParams(scala.collection.immutable.Map<String, String> params) Returns a copy of this instance with the params replaced by the given ones.withQValue(float qValue) Returns a copy of this instance with a changed qValue.Methods inherited from class org.apache.pekko.http.scaladsl.model.MediaRangeapply, apply, custom, getParams, isApplication, isAudio, isImage, isMessage, isMultipart, isText, isVideo, isWildcard, matches, matches, splitOffQValue, withCharsetRangeMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface org.apache.pekko.http.impl.util.LazyValueBytesRenderablerender, toString, valueBytesMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefixMethods inherited from interface org.apache.pekko.http.scaladsl.model.WithQValuewithQValue
- 
Constructor Details- 
PredefinedMediaRange
 
- 
- 
Method Details- 
value- Specified by:
- valuein interface- LazyValueBytesRenderable
- Specified by:
- valuein class- MediaRange
 
- 
mainTypeDescription copied from class:MediaRangeReturns the main-type this media-range matches.- Specified by:
- mainTypein class- MediaRange
 
- 
params
- 
qValuepublic float qValue()Description copied from class:MediaRangeReturns the qValue of this media-range.- Specified by:
- qValuein class- MediaRange
 
- 
withParamsDescription copied from class:MediaRangeReturns a copy of this instance with the params replaced by the given ones. If the given map contains a "q" value theqValuemember is (also) updated.- Specified by:
- withParamsin class- MediaRange
- Parameters:
- params- (undocumented)
- Returns:
- (undocumented)
 
- 
withQValueDescription copied from class:MediaRangeReturns a copy of this instance with a changed qValue.- Specified by:
- withQValuein interface- WithQValue<MediaRange>
- Specified by:
- withQValuein class- MediaRange
 
 
-