vertx-lang-scala-docs_2.12 3.4.2 API < Back
 

# Packages

-  package root
  Definition Classes
    root
-  package io
  Definition Classes
    root
-  package vertx
  Definition Classes
    io
-  package scala
  Definition Classes
    vertx
-  package ext
  Definition Classes
    scala
-  package web
  Definition Classes
    ext
-  package client
  Definition Classes
    web
-  package codec
  Definition Classes
    web
-  package handler
  Definition Classes
    web
-  package sstore
  Definition Classes
    web
-  package templ
  Definition Classes
    web
- Cookie
- FileUpload
- LanguageHeader
- Locale
- MIMEHeader
- ParsedHeaderValue
- ParsedHeaderValues
- Route
- Router
- RoutingContext
- Session

c

io.vertx.scala.ext.web

# LanguageHeader 

###
Companion object LanguageHeader

#### 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
ParsedHeaderValue, Locale, AnyRef, Any
 
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
     @throws( ... )
7.  def country(): String

   Returns the country as reported by the HTTP client.

   Returns the country as reported by the HTTP client.

   returns

     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
12.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
13.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
14.  def isMatchedBy(matchTry: ParsedHeaderValue): Boolean

    Test if this header is matched by matchTry header

    Test if this header is matched by matchTry header

    matchTry

      The header to be matched from

    returns

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

    Definition Classes
      LanguageHeader → ParsedHeaderValue
15.  def isPermitted(): Boolean

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

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

    Definition Classes
      LanguageHeader → ParsedHeaderValue
16.  def language(): String

    Returns the language as reported by the HTTP client.

    Returns the language as reported by the HTTP client.

    returns

      language

    Definition Classes
      Locale
17.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
18.  final def notify(): Unit
    Definition Classes
      AnyRef
19.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
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.

    Definition Classes
      LanguageHeader → ParsedHeaderValue
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.

    returns

      Unmodifiable Map of parameters of this header value

    Definition Classes
      LanguageHeader → ParsedHeaderValue
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
      LanguageHeader → ParsedHeaderValue
23.  def subtag(level: Int): Option[String]

    A subtag of this language header.
    + info: rfc7231#section-3.1.3.1

    A subtag of this language header.
    + info: rfc7231#section-3.1.3.1

    returns

      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

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

    returns

      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

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

    returns

      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
      LanguageHeader → ParsedHeaderValue
30.  def variant(): String

    Returns the variant as reported by the HTTP client.

    Returns the variant as reported by the HTTP client.

    returns

      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
      @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

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

    Definition Classes
      LanguageHeader → ParsedHeaderValue
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
      LanguageHeader → ParsedHeaderValue

### Inherited from ParsedHeaderValue

### Inherited from Locale

### Inherited from AnyRef

### Inherited from Any

### Ungrouped