Object/Class

org.scalatra

ContentNegotiation

Related Docs: class ContentNegotiation | package scalatra

Permalink

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
Visibility
  1. Public
  2. All

Type Members

  1. trait Format[T] extends RegexParsers

    Permalink

    Used to parse a specific type of content negotiation header.

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val AcceptCharset: String

    Permalink
  5. val AcceptEncoding: String

    Permalink
  6. implicit object CharsetFormat extends Format[Charset]

    Permalink
  7. implicit object EncodingFormat extends Format[ContentEncoding]

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

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

    Permalink
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def clone(): AnyRef

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

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

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

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

    Permalink

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

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

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. def values[T](name: String)(implicit req: HttpServletRequest, format: Format[T]): List[ContentNegotiation[T]]

    Permalink

    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.

  27. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped