Packages

object Conneg 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. Conneg
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
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: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val AcceptCharset: String
  5. val AcceptEncoding: String
  6. def acceptedCharsets(implicit req: HttpServletRequest): List[Conneg[Charset]]
  7. def acceptedEncodings(implicit req: HttpServletRequest): List[Conneg[ContentEncoding]]
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  19. def preferredCharset(implicit req: HttpServletRequest): Option[Charset]
  20. def preferredEncoding(implicit req: HttpServletRequest): Option[ContentEncoding]
  21. def preferredValue[T](name: String)(implicit req: HttpServletRequest, format: Format[T]): Option[T]

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

  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. def values[T](name: String)(implicit req: HttpServletRequest, format: Format[T]): List[Conneg[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.

  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. implicit object CharsetFormat extends Format[Charset]
  29. implicit object EncodingFormat extends Format[ContentEncoding]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped