Packages

c

akka.http.scaladsl.model.MediaRanges

PredefinedMediaRange

sealed abstract case class PredefinedMediaRange extends MediaRange with LazyValueBytesRenderable with Product with Serializable

Source
MediaRange.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PredefinedMediaRange
  2. Serializable
  3. Product
  4. Equals
  5. LazyValueBytesRenderable
  6. MediaRange
  7. WithQValue
  8. Renderable
  9. MediaRange
  10. AnyRef
  11. 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 matches(mediaType: MediaType): Boolean
    Definition Classes
    MediaRange

Concrete Value Members

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

    Java API

    Java API

    Definition Classes
    MediaRangeMediaRange
  2. def isApplication: Boolean
    Definition Classes
    MediaRange
  3. def isAudio: Boolean
    Definition Classes
    MediaRange
  4. def isImage: Boolean
    Definition Classes
    MediaRange
  5. def isMessage: Boolean
    Definition Classes
    MediaRange
  6. def isMultipart: Boolean
    Definition Classes
    MediaRange
  7. def isText: Boolean
    Definition Classes
    MediaRange
  8. def isVideo: Boolean
    Definition Classes
    MediaRange
  9. def isWildcard: Boolean
    Definition Classes
    MediaRange
  10. val mainType: String

    Returns the main-type this media-range matches.

  11. def matches(mediaType: javadsl.model.MediaType): Boolean

    Java API

    Java API

    Definition Classes
    MediaRangeMediaRange
  12. def params: Map[String, Nothing]
    Definition Classes
    PredefinedMediaRangeMediaRange
  13. def productElementNames: Iterator[String]
    Definition Classes
    Product
  14. def qValue(): Float

    Returns the qValue of this media-range.

    Returns the qValue of this media-range.

    Definition Classes
    PredefinedMediaRangeMediaRangeMediaRange
  15. def render[R <: Rendering](r: R): r.type
    Definition Classes
    LazyValueBytesRenderable → Renderable
  16. def toString(): String
    Definition Classes
    LazyValueBytesRenderable → AnyRef → Any
  17. val value: String
    Definition Classes
    PredefinedMediaRange → LazyValueBytesRenderable → MediaRange
  18. 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
  19. 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
    PredefinedMediaRangeMediaRange
  20. 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
    PredefinedMediaRangeWithQValueMediaRange
  21. 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