case class MediaType(mainType: String, subType: String, charset: Option[String] = None, otherParameters: Map[String, String] = Map.empty) extends Product with Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- MediaType
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new MediaType(mainType: String, subType: String, charset: Option[String] = None, otherParameters: Map[String, String] = Map.empty)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def charset(c: String): MediaType
- def charset(c: Charset): MediaType
- val charset: Option[String]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(that: Any): Boolean
- Definition Classes
- MediaType → Equals → AnyRef → Any
- def equalsIgnoreParameters(that: MediaType): Boolean
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- lazy val hashCode: Int
- Definition Classes
- MediaType → AnyRef → Any
- def isApplication: Boolean
- def isAudio: Boolean
- def isExample: Boolean
- def isFont: Boolean
- def isImage: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isMessage: Boolean
- def isModel: Boolean
- def isMultipart: Boolean
- def isText: Boolean
- def isVideo: Boolean
- val mainType: String
- def matches(range: ContentTypeRange): Boolean
Checks if this media type matches the given content type range:
Checks if this media type matches the given content type range:
- the main and sub types must match, unless they are wildcards in the range
- if it is defined in the media type, the charset must match, unless it's a wildcard
- if the range defines any other parameters, other than the
q
value, they must be present in the media type (ignoring case)
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noCharset: MediaType
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- val otherParameters: Map[String, String]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val subType: String
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- MediaType → AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)