akka.http.model

MediaType

sealed abstract case class MediaType extends model.japi.MediaType with LazyValueBytesRenderable with WithQValue[MediaRange] with Product with Serializable

Source
MediaType.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, WithQValue[MediaRange], LazyValueBytesRenderable, Renderable, japi.MediaType, AnyRef, Any
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MediaType
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. WithQValue
  7. LazyValueBytesRenderable
  8. Renderable
  9. MediaType
  10. AnyRef
  11. Any
Implicitly
  1. by apply
  2. by any2stringadd
  3. by any2stringfmt
  4. by any2ArrowAssoc
  5. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def withParams(params: Map[String, String]): MediaType

    Returns a copy of this instance with the params replaced by the given ones.

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from MediaType to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (MediaType, B)

    Implicit information
    This member is added by an implicit conversion from MediaType to ArrowAssoc[MediaType] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. val binary: Boolean

  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. val compressible: Boolean

  12. def ensuring(cond: (MediaType) ⇒ Boolean, msg: ⇒ Any): MediaType

    Implicit information
    This member is added by an implicit conversion from MediaType to Ensuring[MediaType] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: (MediaType) ⇒ Boolean): MediaType

    Implicit information
    This member is added by an implicit conversion from MediaType to Ensuring[MediaType] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean, msg: ⇒ Any): MediaType

    Implicit information
    This member is added by an implicit conversion from MediaType to Ensuring[MediaType] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean): MediaType

    Implicit information
    This member is added by an implicit conversion from MediaType to Ensuring[MediaType] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. val fileExtensions: Seq[String]

  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from MediaType to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def getParams(): Map[String, String]

    Java API

    Java API

    Implicit information
    This member is added by an implicit conversion from MediaType to MediaRange performed by method apply in akka.http.model.MediaRange.
    Definition Classes
    MediaRangeMediaRange
  22. def isApplication: Boolean

  23. def isAudio: Boolean

  24. def isImage: Boolean

  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. def isMessage: Boolean

  27. def isMultipart: Boolean

  28. def isText: Boolean

  29. def isVideo: Boolean

  30. def isWildcard: Boolean

    Implicit information
    This member is added by an implicit conversion from MediaType to MediaRange performed by method apply in akka.http.model.MediaRange.
    Definition Classes
    MediaRange
  31. val mainType: String

    Definition Classes
    MediaTypeMediaType
  32. def matches(mediaType: japi.MediaType): Boolean

    Java API

    Java API

    Implicit information
    This member is added by an implicit conversion from MediaType to MediaRange performed by method apply in akka.http.model.MediaRange.
    Definition Classes
    MediaRangeMediaRange
  33. def matches(mediaType: MediaType): Boolean

    Implicit information
    This member is added by an implicit conversion from MediaType to MediaRange performed by method apply in akka.http.model.MediaRange.
    Definition Classes
    MediaRange
  34. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  35. final def notify(): Unit

    Definition Classes
    AnyRef
  36. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  37. val params: Map[String, String]

  38. def qValue(): Float

    Implicit information
    This member is added by an implicit conversion from MediaType to MediaRange performed by method apply in akka.http.model.MediaRange.
    Definition Classes
    MediaRangeMediaRange
  39. def render[R <: Rendering](r: R): r.type

    Definition Classes
    LazyValueBytesRenderable → Renderable
  40. def specimen: MediaType

    Returns a MediaType instance which fits this range.

    Returns a MediaType instance which fits this range.

    Implicit information
    This member is added by an implicit conversion from MediaType to MediaRange performed by method apply in akka.http.model.MediaRange.
    Definition Classes
    MediaRange
  41. val subType: String

    Definition Classes
    MediaTypeMediaType
  42. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  43. def toContentType(): japi.ContentType

    Definition Classes
    MediaType
  44. def toRange(qValue: Float): japi.MediaRange

    Definition Classes
    MediaType
  45. def toRange(): japi.MediaRange

    Definition Classes
    MediaType
  46. def toString(): String

    Definition Classes
    LazyValueBytesRenderable → AnyRef → Any
  47. val value: String

    Definition Classes
    MediaType → LazyValueBytesRenderable
  48. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. def withCharset(charset: HttpCharset): ContentType

    Constructs a ContentType from this instance and the given charset.

  52. def withQValue(qValue: Float): MediaRange

    Definition Classes
    MediaTypeWithQValue
  53. 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
  54. def [B](y: B): (MediaType, B)

    Implicit information
    This member is added by an implicit conversion from MediaType to ArrowAssoc[MediaType] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. def isApplication: Boolean

    Implicit information
    This member is added by an implicit conversion from MediaType to MediaRange performed by method apply in akka.http.model.MediaRange.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (mediaType: MediaRange).isApplication
    Definition Classes
    MediaRange
  2. def isAudio: Boolean

    Implicit information
    This member is added by an implicit conversion from MediaType to MediaRange performed by method apply in akka.http.model.MediaRange.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (mediaType: MediaRange).isAudio
    Definition Classes
    MediaRange
  3. def isImage: Boolean

    Implicit information
    This member is added by an implicit conversion from MediaType to MediaRange performed by method apply in akka.http.model.MediaRange.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (mediaType: MediaRange).isImage
    Definition Classes
    MediaRange
  4. def isMessage: Boolean

    Implicit information
    This member is added by an implicit conversion from MediaType to MediaRange performed by method apply in akka.http.model.MediaRange.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (mediaType: MediaRange).isMessage
    Definition Classes
    MediaRange
  5. def isMultipart: Boolean

    Implicit information
    This member is added by an implicit conversion from MediaType to MediaRange performed by method apply in akka.http.model.MediaRange.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (mediaType: MediaRange).isMultipart
    Definition Classes
    MediaRange
  6. def isText: Boolean

    Implicit information
    This member is added by an implicit conversion from MediaType to MediaRange performed by method apply in akka.http.model.MediaRange.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (mediaType: MediaRange).isText
    Definition Classes
    MediaRange
  7. def isVideo: Boolean

    Implicit information
    This member is added by an implicit conversion from MediaType to MediaRange performed by method apply in akka.http.model.MediaRange.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (mediaType: MediaRange).isVideo
    Definition Classes
    MediaRange
  8. def mainType(): String

    Implicit information
    This member is added by an implicit conversion from MediaType to MediaRange performed by method apply in akka.http.model.MediaRange.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (mediaType: MediaRange).mainType()
    Definition Classes
    MediaRangeMediaRange
  9. def params: Map[String, String]

    Implicit information
    This member is added by an implicit conversion from MediaType to MediaRange performed by method apply in akka.http.model.MediaRange.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (mediaType: MediaRange).params
    Definition Classes
    MediaRange
  10. def render[R <: Rendering](r: R): r.type

    Implicit information
    This member is added by an implicit conversion from MediaType to MediaRange performed by method apply in akka.http.model.MediaRange.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (mediaType: MediaRange).render(r)
    Definition Classes
    Renderable
  11. val self: Any

    Implicit information
    This member is added by an implicit conversion from MediaType to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (mediaType: StringAdd).self
    Definition Classes
    StringAdd
  12. val self: Any

    Implicit information
    This member is added by an implicit conversion from MediaType to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (mediaType: StringFormat).self
    Definition Classes
    StringFormat
  13. def value: String

    Implicit information
    This member is added by an implicit conversion from MediaType to MediaRange performed by method apply in akka.http.model.MediaRange.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (mediaType: MediaRange).value
    Definition Classes
    MediaRange
  14. def withCharset(charsetRange: HttpCharsetRange): ContentTypeRange

    Constructs a ContentTypeRange from this instance and the given charset.

    Constructs a ContentTypeRange from this instance and the given charset.

    Implicit information
    This member is added by an implicit conversion from MediaType to MediaRange performed by method apply in akka.http.model.MediaRange.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (mediaType: MediaRange).withCharset(charsetRange)
    Definition Classes
    MediaRange
  15. 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.

    Implicit information
    This member is added by an implicit conversion from MediaType to MediaRange performed by method apply in akka.http.model.MediaRange.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (mediaType: MediaRange).withParams(params)
    Definition Classes
    MediaRange
  16. 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

    Implicit information
    This member is added by an implicit conversion from MediaType to MediaRange performed by method apply in akka.http.model.MediaRange.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (mediaType: MediaRange).withQValue(qValue)
    Definition Classes
    WithQValue
  17. def withQValue(qValue: Float): MediaRange

    Implicit information
    This member is added by an implicit conversion from MediaType to MediaRange performed by method apply in akka.http.model.MediaRange.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (mediaType: MediaRange).withQValue(qValue)
    Definition Classes
    WithQValue

Deprecated Value Members

  1. def x: MediaType

    Implicit information
    This member is added by an implicit conversion from MediaType to ArrowAssoc[MediaType] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (mediaType: ArrowAssoc[MediaType]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: MediaType

    Implicit information
    This member is added by an implicit conversion from MediaType to Ensuring[MediaType] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (mediaType: Ensuring[MediaType]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from WithQValue[MediaRange]

Inherited from LazyValueBytesRenderable

Inherited from Renderable

Inherited from japi.MediaType

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion apply from MediaType to MediaRange

Inherited by implicit conversion any2stringadd from MediaType to StringAdd

Inherited by implicit conversion any2stringfmt from MediaType to StringFormat

Inherited by implicit conversion any2ArrowAssoc from MediaType to ArrowAssoc[MediaType]

Inherited by implicit conversion any2Ensuring from MediaType to Ensuring[MediaType]

Ungrouped