Package akka.http.scaladsl.model
Class MediaRanges.PredefinedMediaRange
java.lang.Object
akka.http.javadsl.model.MediaRange
akka.http.scaladsl.model.MediaRange
akka.http.scaladsl.model.MediaRanges.PredefinedMediaRange
- All Implemented Interfaces:
LazyValueBytesRenderable
,Renderable
,WithQValue<MediaRange>
,Serializable
,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 akka.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()
float
qValue()
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 akka.http.scaladsl.model.MediaRange
apply, apply, custom, getParams, isApplication, isAudio, isImage, isMessage, isMultipart, isText, isVideo, isWildcard, matches, matches, splitOffQValue, withCharsetRange
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface akka.http.impl.util.LazyValueBytesRenderable
render, toString, valueBytes
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
Methods inherited from interface akka.http.scaladsl.model.WithQValue
withQValue
-
Constructor Details
-
PredefinedMediaRange
-
-
Method Details
-
value
- Specified by:
value
in interfaceLazyValueBytesRenderable
- Specified by:
value
in classMediaRange
-
mainType
Description copied from class:MediaRange
Returns the main-type this media-range matches.- Specified by:
mainType
in classMediaRange
-
params
-
qValue
public float qValue()Description copied from class:MediaRange
Returns the qValue of this media-range.- Specified by:
qValue
in classMediaRange
-
withParams
Description copied from class:MediaRange
Returns a copy of this instance with the params replaced by the given ones. If the given map contains a "q" value theqValue
member is (also) updated.- Specified by:
withParams
in classMediaRange
- Parameters:
params
- (undocumented)- Returns:
- (undocumented)
-
withQValue
Description copied from class:MediaRange
Returns a copy of this instance with a changed qValue.- Specified by:
withQValue
in interfaceWithQValue<MediaRange>
- Specified by:
withQValue
in classMediaRange
-