sealed abstract class MediaRange extends javadsl.model.MediaRange with Renderable with WithQValue[MediaRange]

Source
MediaRange.scala
Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MediaRange
  2. WithQValue
  3. Renderable
  4. MediaRange
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def mainType(): String

    Returns the main-type this media-range matches.

    Returns the main-type this media-range matches.

    Definition Classes
    MediaRangeMediaRange
  2. abstract def matches(mediaType: MediaType): Boolean
  3. abstract def params: Map[String, String]
  4. abstract def qValue(): Float

    Returns the qValue of this media-range.

    Returns the qValue of this media-range.

    Definition Classes
    MediaRangeMediaRange
  5. abstract def value: String
  6. 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.

  7. abstract def withQValue(qValue: Float): MediaRange
    Definition Classes
    WithQValue

Concrete Value Members

  1. def getParams(): Map[String, String]

    Java API

    Java API

    Definition Classes
    MediaRangeMediaRange
  2. def isApplication: Boolean
  3. def isAudio: Boolean
  4. def isImage: Boolean
  5. def isMessage: Boolean
  6. def isMultipart: Boolean
  7. def isText: Boolean
  8. def isVideo: Boolean
  9. def isWildcard: Boolean
  10. def matches(mediaType: javadsl.model.MediaType): Boolean

    Java API

    Java API

    Definition Classes
    MediaRangeMediaRange
  11. def withCharsetRange(charsetRange: HttpCharsetRange): ContentTypeRange

    Constructs a ContentTypeRange from this instance and the given charset.

  12. 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