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 StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  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: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

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

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

    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. val binary: Boolean

  8. def clone(): AnyRef

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

  10. 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 Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (MediaType) ⇒ Boolean): MediaType

    Implicit information
    This member is added by an implicit conversion from MediaType to Ensuring[MediaType] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. 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 Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): MediaType

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

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

  16. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  19. 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
  20. def isApplication: Boolean

  21. def isAudio: Boolean

  22. def isImage: Boolean

  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. def isMessage: Boolean

  25. def isMultipart: Boolean

  26. def isText: Boolean

  27. def isVideo: Boolean

  28. val mainType: String

    Definition Classes
    MediaTypeMediaType
  29. 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
  30. 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
  31. final def ne(arg0: AnyRef): Boolean

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

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

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

  35. 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
  36. def render[R <: Rendering](r: R): r.type

    Definition Classes
    LazyValueBytesRenderable → Renderable
  37. val subType: String

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

    Definition Classes
    AnyRef
  39. def toRange(qValue: Float): japi.MediaRange

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

    Definition Classes
    MediaType
  41. def toString(): String

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

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

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

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

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

    Constructs a ContentType from this instance and the given charset.

  47. def withQValue(qValue: Float): MediaRange

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

    Implicit information
    This member is added by an implicit conversion from MediaType to ArrowAssoc[MediaType] performed by method ArrowAssoc 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. 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
  12. 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
  13. 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
  14. 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
  15. 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

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 any2stringadd[MediaType]

Inherited by implicit conversion StringFormat from MediaType to StringFormat[MediaType]

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

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

Ungrouped