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.StringmainType()Returns the main-type this media-range matches.scala.collection.immutable.Map<java.lang.String,scala.runtime.Nothing$>params()floatqValue()Returns the qValue of this media-range.java.lang.Stringvalue()MediaRangewithParams(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.MediaRangewithQValue(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:
valuein interfaceLazyValueBytesRenderable- Specified by:
valuein classMediaRange
-
mainType
public java.lang.String mainType()
Description copied from class:MediaRangeReturns the main-type this media-range matches.- Specified by:
mainTypein classMediaRange
-
params
public scala.collection.immutable.Map<java.lang.String,scala.runtime.Nothing$> params()
-
qValue
public float qValue()
Description copied from class:MediaRangeReturns the qValue of this media-range.- Specified by:
qValuein classMediaRange
-
withParams
public MediaRange withParams(scala.collection.immutable.Map<java.lang.String,java.lang.String> params)
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
public MediaRange withQValue(float qValue)
Description copied from class:MediaRangeReturns a copy of this instance with a changed qValue.- Specified by:
withQValuein interfaceWithQValue<MediaRange>- Specified by:
withQValuein classMediaRange
-
-