class LanguageHeader extends Locale with ParsedHeaderValue
A parsed language header. Delivers a more direct access to the individual elements of the header it represents
- Alphabetic
- By Inheritance
- LanguageHeader
- ParsedHeaderValue
- Locale
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new LanguageHeader(_asJava: AnyRef)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asJava: AnyRef
- Definition Classes
- Locale
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
country(): String
Returns the country as reported by the HTTP client.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
-
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
-
def
language(): String
Returns the language as reported by the HTTP client.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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
-
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
-
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
-
def
subtag(level: Int): Option[String]
A subtag of this language header.
+ info: rfc7231#section-3.1.3.1A subtag of this language header.
+ info: rfc7231#section-3.1.3.1- returns
The language subtag at specified position
-
def
subtag(): Option[String]
The subtag of the language as specified by rfc7231#section-3.1.3.1.
Equivalent toThe subtag of the language as specified by rfc7231#section-3.1.3.1.
Equivalent to- returns
The language subtag
-
def
subtagCount(): Int
- returns
the number of subtags this value has
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tag(): String
The tag of the language as specified by rfc7231#section-3.1.3.1.
Equivalent toThe tag of the language as specified by rfc7231#section-3.1.3.1.
Equivalent to- returns
The language tag
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
-
def
variant(): String
Returns the variant as reported by the HTTP client.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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 rfc7231Holds 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
-
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