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
- @native() @throws( ... )
-
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
-
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
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
- LanguageHeader → ParsedHeaderValue
-
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
- LanguageHeader → ParsedHeaderValue
-
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
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
- 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. * @return 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.1 * @return 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 to * @return 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 to * @return 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.
Returns the variant as reported by the HTTP client. * @return variant
- Definition Classes
- Locale
-
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
- @native() @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 rfc7231 * @returnHolds 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
- 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