sealed abstract class MediaRange extends javadsl.model.MediaRange with Renderable with WithQValue[MediaRange]
Ordering
- Alphabetic
- By Inheritance
Inherited
- MediaRange
- WithQValue
- Renderable
- MediaRange
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
-
abstract
def
mainType(): String
Returns the main-type this media-range matches.
Returns the main-type this media-range matches.
- Definition Classes
- MediaRange → MediaRange
- abstract def matches(mediaType: MediaType): Boolean
- abstract def params: Map[String, String]
-
abstract
def
qValue(): Float
Returns the qValue of this media-range.
Returns the qValue of this media-range.
- Definition Classes
- MediaRange → MediaRange
- abstract def value: String
-
abstract
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. -
abstract
def
withQValue(qValue: Float): MediaRange
- Definition Classes
- WithQValue
Concrete Value Members
-
def
getParams(): Map[String, String]
Java API
Java API
- Definition Classes
- MediaRange → MediaRange
- def isApplication: Boolean
- def isAudio: Boolean
- def isImage: Boolean
- def isMessage: Boolean
- def isMultipart: Boolean
- def isText: Boolean
- def isVideo: Boolean
- def isWildcard: Boolean
-
def
matches(mediaType: javadsl.model.MediaType): Boolean
Java API
Java API
- Definition Classes
- MediaRange → MediaRange
-
def
withCharsetRange(charsetRange: HttpCharsetRange): ContentTypeRange
Constructs a
ContentTypeRange
from this instance and the given charset. -
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