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 Summary
Nested classes/interfaces inherited from class org.apache.pekko.http.scaladsl.model.MediaRange
MediaRange.One, MediaRange.One$ -
Constructor Summary
Constructors -
Method Summary
Modifier 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.MediaRange
apply, apply, custom, getParams, isApplication, isAudio, isImage, isMessage, isMultipart, isText, isVideo, isWildcard, matches, matches, splitOffQValue, withCharsetRangeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.Equals
canEqual, equalsMethods inherited from interface org.apache.pekko.http.impl.util.LazyValueBytesRenderable
render, toString, valueBytesMethods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefixMethods inherited from interface org.apache.pekko.http.scaladsl.model.WithQValue
withQValue
-
Constructor Details
-
PredefinedMediaRange
-
-
Method Details
-
value
- Specified by:
valuein interfaceLazyValueBytesRenderable- Specified by:
valuein classMediaRange
-
mainType
Description copied from class:MediaRangeReturns the main-type this media-range matches.- Specified by:
mainTypein classMediaRange
-
params
-
qValue
public float qValue()Description copied from class:MediaRangeReturns the qValue of this media-range.- Specified by:
qValuein classMediaRange
-
withParams
Description 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 classMediaRange- Parameters:
params- (undocumented)- Returns:
- (undocumented)
-
withQValue
Description copied from class:MediaRangeReturns a copy of this instance with a changed qValue.- Specified by:
withQValuein interfaceWithQValue<MediaRange>- Specified by:
withQValuein classMediaRange
-