sealed abstract case class PredefinedMediaRange extends MediaRange with LazyValueBytesRenderable with Product with Serializable
- Alphabetic
- By Inheritance
- PredefinedMediaRange
- Serializable
- Product
- Equals
- LazyValueBytesRenderable
- MediaRange
- WithQValue
- Renderable
- MediaRange
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def matches(mediaType: MediaType): Boolean
- Definition Classes
- MediaRange
Concrete Value Members
- def getParams(): Map[String, String]
Java API
Java API
- Definition Classes
- MediaRange → MediaRange
- def isApplication: Boolean
- Definition Classes
- MediaRange
- def isAudio: Boolean
- Definition Classes
- MediaRange
- def isImage: Boolean
- Definition Classes
- MediaRange
- def isMessage: Boolean
- Definition Classes
- MediaRange
- def isMultipart: Boolean
- Definition Classes
- MediaRange
- def isText: Boolean
- Definition Classes
- MediaRange
- def isVideo: Boolean
- Definition Classes
- MediaRange
- def isWildcard: Boolean
- Definition Classes
- MediaRange
- val mainType: String
Returns the main-type this media-range matches.
- def matches(mediaType: javadsl.model.MediaType): Boolean
Java API
Java API
- Definition Classes
- MediaRange → MediaRange
- def params: Map[String, Nothing]
- Definition Classes
- PredefinedMediaRange → MediaRange
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def qValue(): Float
Returns the qValue of this media-range.
Returns the qValue of this media-range.
- Definition Classes
- PredefinedMediaRange → MediaRange → MediaRange
- def render[R <: Rendering](r: R): r.type
- Definition Classes
- LazyValueBytesRenderable → Renderable
- def toString(): String
- Definition Classes
- LazyValueBytesRenderable → AnyRef → Any
- val value: String
- Definition Classes
- PredefinedMediaRange → LazyValueBytesRenderable → MediaRange
- def withCharsetRange(charsetRange: HttpCharsetRange): ContentTypeRange
Constructs a
ContentTypeRange
from this instance and the given charset.Constructs a
ContentTypeRange
from this instance and the given charset.- Definition Classes
- MediaRange
- def withParams(params: Map[String, String]): MediaRange
Returns a copy of this instance with the params replaced by the given ones.
Returns a copy of this instance with the params replaced by the given ones. If the given map contains a "q" value the
qValue
member is (also) updated.- Definition Classes
- PredefinedMediaRange → MediaRange
- def withQValue(qValue: Float): MediaRange
Returns a copy of this instance with a changed qValue.
Returns a copy of this instance with a changed qValue.
- Definition Classes
- PredefinedMediaRange → WithQValue → MediaRange
- def withQValue(qValue: Double): MediaRange
truncates Double qValue to float and returns a new instance with this qValue set
truncates Double qValue to float and returns a new instance with this qValue set
- Definition Classes
- WithQValue