Packages

class LanguageHeader extends Locale with ParsedHeaderValue

A parsed language header. Delivers a more direct access to the individual elements of the header it represents

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LanguageHeader
  2. ParsedHeaderValue
  3. Locale
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LanguageHeader(_asJava: AnyRef)

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def asJava: AnyRef
    Definition Classes
    Locale
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  7. def country(): String

    Returns the country as reported by the HTTP client.

    Returns the country as reported by the HTTP client. * @return variant

    Definition Classes
    Locale
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def isMatchedBy(matchTry: ParsedHeaderValue): Boolean

    Test if this header is matched by matchTry header * @param matchTry The header to be matched from

    Test if this header is matched by matchTry header * @param matchTry The header to be matched from

    returns

    true if this header represents a subset of matchTry, otherwise, false

    Definition Classes
    LanguageHeaderParsedHeaderValue
  15. def isPermitted(): Boolean

    Is this an allowed operation as specified by the corresponding header? * @return

    Is this an allowed operation as specified by the corresponding header? * @return

    Definition Classes
    LanguageHeaderParsedHeaderValue
  16. def language(): String

    Returns the language as reported by the HTTP client.

    Returns the language as reported by the HTTP client. * @return language

    Definition Classes
    Locale
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def parameter(key: String): Option[String]

    The value of the parameter specified by this key.

    The value of the parameter specified by this key. Each is one of 3 things:

    • null <- That key was not specified
    • ParsedHeaderValue.EMPTY (tested using ==) <- The value was not specified
    • [Other] <- The value of the parameter

    Note: The q parameter is never present. * @return

    Definition Classes
    LanguageHeaderParsedHeaderValue
  21. def parameters(): Map[String, String]

    The parameters specified in this header value.

    The parameters specified in this header value. Note: The q parameter is never present. * @return Unmodifiable Map of parameters of this header value

    Definition Classes
    LanguageHeaderParsedHeaderValue
  22. def rawValue(): String

    Contains the raw value that was received from the user agent

    Contains the raw value that was received from the user agent

    Definition Classes
    LanguageHeaderParsedHeaderValue
  23. def subtag(level: Int): Option[String]

    A subtag of this language header.
    + info: rfc7231#section-3.1.3.1 * @return The language subtag at specified position

  24. def subtag(): Option[String]

    The subtag of the language as specified by rfc7231#section-3.1.3.1.
    Equivalent to * @return The language subtag

  25. def subtagCount(): Int

    returns

    the number of subtags this value has

  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. def tag(): String

    The tag of the language as specified by rfc7231#section-3.1.3.1.
    Equivalent to * @return The language tag

  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. def value(): String

    Holds the unparsed value of the header.
    For the most part, this is the content before the semi-colon (";")

    Holds the unparsed value of the header.
    For the most part, this is the content before the semi-colon (";")

    Definition Classes
    LanguageHeaderParsedHeaderValue
  30. def variant(): String

    Returns the variant as reported by the HTTP client.

    Returns the variant as reported by the HTTP client. * @return variant

    Definition Classes
    Locale
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  34. def weight(): Float

    Holds the weight specified in the "q" parameter of the header.
    If the parameter is not specified, 1.0 is assumed according to rfc7231 * @return

    Holds the weight specified in the "q" parameter of the header.
    If the parameter is not specified, 1.0 is assumed according to rfc7231 * @return

    Definition Classes
    LanguageHeaderParsedHeaderValue
  35. def weightedOrder(): Int

    An integer that represents the absolute order position of this header

    An integer that represents the absolute order position of this header

    Definition Classes
    LanguageHeaderParsedHeaderValue

Inherited from ParsedHeaderValue

Inherited from Locale

Inherited from AnyRef

Inherited from Any

Ungrouped