object ContentType
- Alphabetic
- By Inheritance
- ContentType
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class Binary(mediaType: MediaType.Binary) extends javadsl.model.ContentType.Binary with ContentType with Product with Serializable
Represents a content-type which we know not to contain text (will never have have a charset)
- sealed trait NonBinary extends javadsl.model.ContentType.NonBinary with ContentType
Represents a content-type which we know to contain text, and has a specified charset.
- final case class WithCharset(mediaType: WithOpenCharset, charset: HttpCharset) extends javadsl.model.ContentType.WithCharset with NonBinary with Product with Serializable
Represents a content-type which we know to contain text, and the charset is known at runtime.
- final case class WithFixedCharset(mediaType: MediaType.WithFixedCharset) extends javadsl.model.ContentType.WithFixedCharset with NonBinary with Product with Serializable
Represents a content-type which we know to contain text, where the charset always has the same predefined value.
- final case class WithMissingCharset(mediaType: WithOpenCharset) extends javadsl.model.ContentType.WithMissingCharset with ContentType with Product with Serializable
Represents a content-type which we know to contain text, and would be better off having a charset, but the client or server hasn't provided that.
Represents a content-type which we know to contain text, and would be better off having a charset, but the client or server hasn't provided that. For example, "text/xml" without a charset parameter.
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
- def apply(mediaType: MediaType, charset: () => HttpCharset): ContentType
- def apply(mediaType: WithOpenCharset, charset: HttpCharset): WithCharset
- implicit def apply(mediaType: MediaType.WithFixedCharset): WithFixedCharset
- implicit def apply(mediaType: MediaType.Binary): Binary
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def parse(value: String): Either[List[ErrorInfo], ContentType]
Tries to parse a
ContentType
value from the given String.Tries to parse a
ContentType
value from the given String. ReturnsRight(contentType)
if successful andLeft(errors)
otherwise. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unapply(contentType: ContentType): Option[(MediaType, Option[HttpCharset])]
- 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])