abstract class MediaRange extends AnyRef

Represents an Http media-range. A media-range either matches a single media-type or it matches all media-types of a given main-type. Each range can specify a qValue or other parameters.

Source
MediaRange.java
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MediaRange
  2. AnyRef
  3. 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

Instance Constructors

  1. new MediaRange()

Abstract Value Members

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

    Returns a Map of the parameters of this media-range.

  2. abstract def mainType(): String

    Returns the main-type this media-range matches.

  3. abstract def matches(mediaType: MediaType): Boolean

    Checks if this range matches a given media-type.

  4. abstract def qValue(): Float

    Returns the qValue of this media-range.

  5. abstract def withQValue(qValue: Float): MediaRange

    Returns a copy of this instance with a changed qValue.