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>
,java.io.Serializable
,scala.Equals
,scala.Product
- Enclosing class:
- MediaRanges
public abstract static class MediaRanges.PredefinedMediaRange extends MediaRange implements LazyValueBytesRenderable, scala.Product, java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class akka.http.scaladsl.model.MediaRange
MediaRange.One, MediaRange.One$
-
-
Constructor Summary
Constructors Constructor Description PredefinedMediaRange(java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
mainType()
Returns the main-type this media-range matches.scala.collection.immutable.Map<java.lang.String,scala.runtime.Nothing$>
params()
float
qValue()
Returns the qValue of this media-range.java.lang.String
value()
MediaRange
withParams(scala.collection.immutable.Map<java.lang.String,java.lang.String> params)
Returns a copy of this instance with the params replaced by the given ones.MediaRange
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 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
-
-
-
-
Method Detail
-
value
public java.lang.String value()
- Specified by:
value
in interfaceLazyValueBytesRenderable
- Specified by:
value
in classMediaRange
-
mainType
public java.lang.String mainType()
Description copied from class:MediaRange
Returns the main-type this media-range matches.- Specified by:
mainType
in classMediaRange
-
params
public scala.collection.immutable.Map<java.lang.String,scala.runtime.Nothing$> params()
-
qValue
public float qValue()
Description copied from class:MediaRange
Returns the qValue of this media-range.- Specified by:
qValue
in classMediaRange
-
withParams
public MediaRange withParams(scala.collection.immutable.Map<java.lang.String,java.lang.String> params)
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
public MediaRange withQValue(float qValue)
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
-
-