Class/Object

org.http4s

MediaType

Related Docs: object MediaType | package http4s

Permalink

sealed class MediaType extends MediaRange

Source
MediaType.scala
Linear Supertypes
MediaRange, Renderable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MediaType
  2. MediaRange
  3. Renderable
  4. AnyRef
  5. Any
Implicitly
  1. by fromValue
  2. by fromValue
  3. by any2stringadd
  4. by StringFormat
  5. by Ensuring
  6. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MediaType(mainType: String, subType: String, compressible: Boolean = false, binary: Boolean = false, fileExtensions: Seq[String] = Nil, extensions: Map[String, String] = Map.empty)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ->[B](y: B): (MediaType, B)

    Permalink
    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()
  4. final def ==(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    Any
  6. val binary: Boolean

    Permalink
  7. def charAt(arg0: Int): Char

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String → CharSequence
  8. def chars(): IntStream

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    CharSequence
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def codePointAt(arg0: Int): Int

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  11. def codePointBefore(arg0: Int): Int

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  12. def codePointCount(arg0: Int, arg1: Int): Int

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  13. def codePoints(): IntStream

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    CharSequence
  14. def compareTo(arg0: String): Int

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String → Comparable
  15. def compareToIgnoreCase(arg0: String): Int

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  16. val compressible: Boolean

    Permalink
  17. def concat(arg0: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  18. def contains(arg0: CharSequence): Boolean

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  19. def contentEquals(arg0: CharSequence): Boolean

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  20. def contentEquals(arg0: StringBuffer): Boolean

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  21. def endsWith(arg0: String): Boolean

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  22. def ensuring(cond: (MediaType) ⇒ Boolean, msg: ⇒ Any): MediaType

    Permalink
    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
  23. def ensuring(cond: (MediaType) ⇒ Boolean): MediaType

    Permalink
    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
  24. def ensuring(cond: Boolean, msg: ⇒ Any): MediaType

    Permalink
    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
  25. def ensuring(cond: Boolean): MediaType

    Permalink
    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
  26. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. def equals(obj: Any): Boolean

    Permalink
    Definition Classes
    MediaTypeMediaRange → AnyRef → Any
  28. def equalsIgnoreCase(arg0: String): Boolean

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  29. val extensions: Map[String, String]

    Permalink
    Definition Classes
    MediaRange
  30. val fileExtensions: Seq[String]

    Permalink
  31. def finalize(): Unit

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

    Permalink
    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()
  33. def getBytes(): Array[Byte]

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  34. def getBytes(arg0: java.nio.charset.Charset): Array[Byte]

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  35. def getBytes(arg0: String): Array[Byte]

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
    Annotations
    @throws( ... )
  36. def getChars(arg0: Int, arg1: Int, arg2: Array[Char], arg3: Int): Unit

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  37. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  38. def hashCode(): Int

    Permalink
    Definition Classes
    MediaTypeMediaRange → AnyRef → Any
  39. def indexOf(arg0: String, arg1: Int): Int

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  40. def indexOf(arg0: String): Int

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  41. def indexOf(arg0: Int, arg1: Int): Int

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  42. def indexOf(arg0: Int): Int

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  43. def intern(): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  44. def isApplication: Boolean

    Permalink
    Definition Classes
    MediaRange
  45. def isAudio: Boolean

    Permalink
    Definition Classes
    MediaRange
  46. def isEmpty(): Boolean

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  47. def isImage: Boolean

    Permalink
    Definition Classes
    MediaRange
  48. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  49. def isMessage: Boolean

    Permalink
    Definition Classes
    MediaRange
  50. def isMultipart: Boolean

    Permalink
    Definition Classes
    MediaRange
  51. def isText: Boolean

    Permalink
    Definition Classes
    MediaRange
  52. def isVideo: Boolean

    Permalink
    Definition Classes
    MediaRange
  53. def lastIndexOf(arg0: String, arg1: Int): Int

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  54. def lastIndexOf(arg0: String): Int

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  55. def lastIndexOf(arg0: Int, arg1: Int): Int

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  56. def lastIndexOf(arg0: Int): Int

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  57. def length(): Int

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String → CharSequence
  58. val mainType: String

    Permalink
    Definition Classes
    MediaRange
  59. def matches(arg0: String): Boolean

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  60. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  61. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  62. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  63. def offsetByCodePoints(arg0: Int, arg1: Int): Int

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  64. def productArity: Int

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to (String, String) performed by method fromValue in org.http4s.MediaType.
    Definition Classes
    Product2 → Product
  65. def productElement(n: Int): Any

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to (String, String) performed by method fromValue in org.http4s.MediaType.
    Definition Classes
    Product2 → Product
    Annotations
    @throws( ... )
  66. def regionMatches(arg0: Boolean, arg1: Int, arg2: String, arg3: Int, arg4: Int): Boolean

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  67. def regionMatches(arg0: Int, arg1: String, arg2: Int, arg3: Int): Boolean

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  68. def render(writer: Writer): writer.type

    Permalink

    Base method for rendering this object efficiently

    Base method for rendering this object efficiently

    Definition Classes
    MediaTypeMediaRangeRenderable
  69. def renderString: String

    Permalink

    Generates a String rendering of this object

    Generates a String rendering of this object

    Definition Classes
    Renderable
  70. def replace(arg0: CharSequence, arg1: CharSequence): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  71. def replace(arg0: Char, arg1: Char): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  72. def replaceAll(arg0: String, arg1: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  73. def replaceFirst(arg0: String, arg1: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  74. def satisfiedBy(mediaType: MediaRange): Boolean

    Permalink

    Does that mediaRange satisfy this ranges requirements

    Does that mediaRange satisfy this ranges requirements

    Definition Classes
    MediaTypeMediaRange
  75. final def satisfies(mediaType: MediaType): Boolean

    Permalink
  76. final def satisfies(mediaRange: MediaRange): Boolean

    Permalink
    Definition Classes
    MediaRange
  77. def split(arg0: String): Array[String]

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  78. def split(arg0: String, arg1: Int): Array[String]

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  79. def startsWith(arg0: String): Boolean

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  80. def startsWith(arg0: String, arg1: Int): Boolean

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  81. def subSequence(arg0: Int, arg1: Int): CharSequence

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String → CharSequence
  82. val subType: String

    Permalink
  83. def substring(arg0: Int, arg1: Int): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  84. def substring(arg0: Int): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  85. def swap: (String, String)

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to (String, String) performed by method fromValue in org.http4s.MediaType.
    Definition Classes
    Tuple2
  86. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  87. def toCharArray(): Array[Char]

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  88. def toLowerCase(): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  89. def toLowerCase(arg0: Locale): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  90. def toString(): String

    Permalink
    Definition Classes
    MediaTypeMediaRangeRenderable → AnyRef → Any
  91. def toUpperCase(): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  92. def toUpperCase(arg0: Locale): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  93. def trim(): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
  94. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  97. def withExtensions(ext: Map[String, String]): MediaType

    Permalink
    Definition Classes
    MediaTypeMediaRange
  98. def withQValue(q: QValue): MediaRangeAndQValue

    Permalink
    Definition Classes
    MediaRange
  99. def [B](y: B): (MediaType, B)

    Permalink
    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. final def +(arg0: Any): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    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: String).+(arg0)
    Definition Classes
    String
  2. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to any2stringadd[MediaType] 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: any2stringadd[MediaType]).+(other)
    Definition Classes
    any2stringadd
  3. def equals(arg0: Any): Boolean

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.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: String).equals(arg0)
    Definition Classes
    String → AnyRef → Any
  4. def hashCode(): Int

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.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: String).hashCode()
    Definition Classes
    String → AnyRef → Any
  5. def toString(): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to (String, String) performed by method fromValue in org.http4s.MediaType.
    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: (String, String)).toString()
    Definition Classes
    Tuple2 → AnyRef → Any
  6. def toString(): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.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: String).toString()
    Definition Classes
    String → CharSequence → AnyRef → Any

Deprecated Value Members

  1. def getBytes(arg0: Int, arg1: Int, arg2: Array[Byte], arg3: Int): Unit

    Permalink
    Implicit information
    This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
    Definition Classes
    String
    Annotations
    @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from MediaRange

Inherited from Renderable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion fromValue from MediaType to (String, String)

Inherited by implicit conversion fromValue from MediaType to String

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