MediaRange

play.api.http.MediaRange
See theMediaRange companion object
class MediaRange(mediaType: String, mediaSubType: String, parameters: Seq[(String, Option[String])], val qValue: Option[BigDecimal], val acceptExtensions: Seq[(String, Option[String])]) extends MediaType

A media range as defined by RFC 2616 14.1

Value parameters

acceptExtensions

The accept extensions

mediaSubType

The media sub type

mediaType

The media type

parameters

The parameters

qValue

The Q value

Attributes

Companion
object
Graph
Supertypes
class MediaType
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def accepts(mimeType: String): Boolean

Attributes

Returns

true if mimeType matches this media type, otherwise false

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
MediaType -> Any

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields