object ContentNegotiation extends Serializable
Defines type classes and helper methods for well known content-negotiation headers.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ContentNegotiation
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
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
- val AcceptCharset: String
- val AcceptEncoding: String
- def acceptedCharsets(implicit req: HttpServletRequest): List[ContentNegotiation[Charset]]
- def acceptedEncodings(implicit req: HttpServletRequest): List[ContentNegotiation[ContentEncoding]]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @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
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def preferredCharset(implicit req: HttpServletRequest): Option[Charset]
- def preferredEncoding(implicit req: HttpServletRequest): Option[ContentEncoding]
- def preferredValue[T](name: String)(implicit req: HttpServletRequest, format: Format[T]): Option[T]
Retrieves the preferred supported value for the specified content-negotiation header.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def values[T](name: String)(implicit req: HttpServletRequest, format: Format[T]): List[ContentNegotiation[T]]
Retrieves all supported values of the specified content-negotiation header.
Retrieves all supported values of the specified content-negotiation header.
Note that any value declared in the header but not supported by the system will be absent from the list. For example, an
Accept-Charsetvalue ofutf-256will yield an empty list.Additionally, this method swallows errors silently. An invalid header value will yield an empty list rather than an exception.
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()
- implicit object CharsetFormat extends Format[Charset]
- implicit object EncodingFormat extends Format[ContentEncoding]