skinny.micro

ContentNegotiation

object ContentNegotiation extends Serializable

Defines type classes and helper methods for well known content-negotiation headers.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ContentNegotiation
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait Format[T] extends RegexParsers

    Used to parse a specific type of content negotiation header.

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val AcceptCharset: String

  7. val AcceptEncoding: String

  8. implicit object CharsetFormat extends Format[Charset]

  9. implicit object EncodingFormat extends Format[ContentEncoding]

  10. def acceptedCharsets(implicit req: HttpServletRequest): List[ContentNegotiation[Charset]]

  11. def acceptedEncodings(implicit req: HttpServletRequest): List[ContentNegotiation[ContentEncoding]]

  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  23. def preferredCharset(implicit req: HttpServletRequest): Option[Charset]

  24. def preferredEncoding(implicit req: HttpServletRequest): Option[ContentEncoding]

  25. def preferredValue[T](name: String)(implicit req: HttpServletRequest, format: Format[T]): Option[T]

    Retrieves the preferred supported value for the specified content-negotiation header.

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. 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-Charset value of utf-256 will yield an empty list.

    Additionally, this method swallows errors silently. An invalid header value will yield an empty list rather than an exception.

  29. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped