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

no subtypes hierarchy

LanguageHeader(LanguageHeader unknown)
Inherited Attributes
Attributes inherited from: Object
hash, string
isMatchedByshared actual default Boolean isMatchedBy(ParsedHeaderValue matchTry)

Test if this header is matched by matchTry header

  • matchTry

    The header to be matched from

isPermittedshared actual default Boolean isPermitted()

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

parametershared actual default String? parameter(String key)

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

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

Note: The q parameter is never present.

parametersshared actual default Map<String,String> parameters()

The parameters specified in this header value. Note: The q parameter is never present.

rawValueshared actual default String rawValue()

Contains the raw value that was received from the user agent

subtagshared default String? subtag()

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

subtagshared default String? subtag(Integer level)

A subtag of this language header.

subtagCountshared default Integer subtagCount()
tagshared default String tag()

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

valueshared actual default String value()

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

weightshared actual default Float weight()

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

weightedOrdershared actual default Integer weightedOrder()

An integer that represents the absolute order position of this header

Inherited Methods
Methods inherited from: Locale
Methods inherited from: Object
Methods inherited from: ParsedHeaderValue