sealed class MediaType extends MediaRange
- Source
- MediaType.scala
- Alphabetic
- By Inheritance
- MediaType
- MediaRange
- Renderable
- AnyRef
- Any
- by fromValue
- by fromValue
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new MediaType(mainType: String, subType: String, compressible: Boolean = false, binary: Boolean = false, fileExtensions: Seq[String] = Nil, extensions: Map[String, String] = Map.empty)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def ->[B](y: B): (MediaType, B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val binary: Boolean
-
def
charAt(arg0: Int): Char
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String → CharSequence
-
def
chars(): IntStream
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- CharSequence
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
codePointAt(arg0: Int): Int
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
codePointBefore(arg0: Int): Int
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
codePointCount(arg0: Int, arg1: Int): Int
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
codePoints(): IntStream
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- CharSequence
-
def
compareTo(arg0: String): Int
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String → Comparable
-
def
compareToIgnoreCase(arg0: String): Int
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
- val compressible: Boolean
-
def
concat(arg0: String): String
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
contains(arg0: CharSequence): Boolean
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
contentEquals(arg0: CharSequence): Boolean
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
contentEquals(arg0: StringBuffer): Boolean
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
endsWith(arg0: String): Boolean
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
- def ensuring(cond: (MediaType) ⇒ Boolean, msg: ⇒ Any): MediaType
- def ensuring(cond: (MediaType) ⇒ Boolean): MediaType
- def ensuring(cond: Boolean, msg: ⇒ Any): MediaType
- def ensuring(cond: Boolean): MediaType
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(obj: Any): Boolean
- Definition Classes
- MediaType → MediaRange → AnyRef → Any
-
def
equalsIgnoreCase(arg0: String): Boolean
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
val
extensions: Map[String, String]
- Definition Classes
- MediaRange
- val fileExtensions: Seq[String]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def formatted(fmtstr: String): String
-
def
getBytes(): Array[Byte]
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
getBytes(arg0: java.nio.charset.Charset): Array[Byte]
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
getBytes(arg0: String): Array[Byte]
- Implicit
- 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( ... )
-
def
getChars(arg0: Int, arg1: Int, arg2: Array[Char], arg3: Int): Unit
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- MediaType → MediaRange → AnyRef → Any
-
def
indexOf(arg0: String, arg1: Int): Int
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
indexOf(arg0: String): Int
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
indexOf(arg0: Int, arg1: Int): Int
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
indexOf(arg0: Int): Int
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
intern(): String
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
isApplication: Boolean
- Definition Classes
- MediaRange
-
def
isAudio: Boolean
- Definition Classes
- MediaRange
-
def
isEmpty(): Boolean
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
isImage: Boolean
- Definition Classes
- MediaRange
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isMessage: Boolean
- Definition Classes
- MediaRange
-
def
isMultipart: Boolean
- Definition Classes
- MediaRange
-
def
isText: Boolean
- Definition Classes
- MediaRange
-
def
isVideo: Boolean
- Definition Classes
- MediaRange
-
def
lastIndexOf(arg0: String, arg1: Int): Int
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
lastIndexOf(arg0: String): Int
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
lastIndexOf(arg0: Int, arg1: Int): Int
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
lastIndexOf(arg0: Int): Int
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
length(): Int
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String → CharSequence
-
val
mainType: String
- Definition Classes
- MediaRange
-
def
matches(arg0: String): Boolean
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
offsetByCodePoints(arg0: Int, arg1: Int): Int
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
productArity: Int
- Implicit
- 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
-
def
productElement(n: Int): Any
- Implicit
- 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( ... )
-
def
regionMatches(arg0: Boolean, arg1: Int, arg2: String, arg3: Int, arg4: Int): Boolean
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
regionMatches(arg0: Int, arg1: String, arg2: Int, arg3: Int): Boolean
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
render(writer: Writer): writer.type
Base method for rendering this object efficiently
Base method for rendering this object efficiently
- Definition Classes
- MediaType → MediaRange → Renderable
-
def
renderString: String
Generates a String rendering of this object
Generates a String rendering of this object
- Definition Classes
- Renderable
-
def
replace(arg0: CharSequence, arg1: CharSequence): String
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
replace(arg0: Char, arg1: Char): String
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
replaceAll(arg0: String, arg1: String): String
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
replaceFirst(arg0: String, arg1: String): String
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
satisfiedBy(mediaType: MediaRange): Boolean
Does that mediaRange satisfy this ranges requirements
Does that mediaRange satisfy this ranges requirements
- Definition Classes
- MediaType → MediaRange
- final def satisfies(mediaType: MediaType): Boolean
-
final
def
satisfies(mediaRange: MediaRange): Boolean
- Definition Classes
- MediaRange
-
def
split(arg0: String): Array[String]
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
split(arg0: String, arg1: Int): Array[String]
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
startsWith(arg0: String): Boolean
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
startsWith(arg0: String, arg1: Int): Boolean
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
subSequence(arg0: Int, arg1: Int): CharSequence
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String → CharSequence
- val subType: String
-
def
substring(arg0: Int, arg1: Int): String
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
substring(arg0: Int): String
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
swap: (String, String)
- Implicit
- This member is added by an implicit conversion from MediaType to (String, String) performed by method fromValue in org.http4s.MediaType.
- Definition Classes
- Tuple2
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toCharArray(): Array[Char]
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
toLowerCase(): String
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
toLowerCase(arg0: Locale): String
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
toString(): String
- Definition Classes
- MediaType → MediaRange → Renderable → AnyRef → Any
-
def
toUpperCase(): String
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
toUpperCase(arg0: Locale): String
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
def
trim(): String
- Implicit
- This member is added by an implicit conversion from MediaType to String performed by method fromValue in org.http4s.MediaRange.
- Definition Classes
- String
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withExtensions(ext: Map[String, String]): MediaType
- Definition Classes
- MediaType → MediaRange
-
def
withQValue(q: QValue): MediaRangeAndQValue
- Definition Classes
- MediaRange
- def →[B](y: B): (MediaType, B)
Shadowed Implicit Value Members
-
final
def
+(arg0: Any): String
- Implicit
- 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
-
def
+(other: String): String
- Implicit
- 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
-
def
equals(arg0: Any): Boolean
- Implicit
- 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
-
def
hashCode(): Int
- Implicit
- 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
-
def
toString(): String
- Implicit
- 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
-
def
toString(): String
- Implicit
- 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
-
def
getBytes(arg0: Int, arg1: Int, arg2: Array[Byte], arg3: Int): Unit
- Implicit
- 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.