public class AcceptLanguage extends Language implements QualityValue
| Modifier and Type | Field and Description |
|---|---|
static AcceptLanguage |
DEFAULT
Default accepted language, it minds any language is acceptable.
|
DEFAULT_QUALITY_VALUE, QVALUE| Constructor and Description |
|---|
AcceptLanguage(Locale locale)
Constructs new instance of accepted language with default quality value.
|
AcceptLanguage(Locale locale,
float qValue)
Constructs new instance of accepted language with quality value.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getQvalue() |
static AcceptLanguage |
valueOf(String header)
Creates a new instance of AcceptedLanguage by parsing the supplied string.
|
getLocale, getLocale, getPrimaryTag, getSubTag, isCompatible, toStringpublic static final AcceptLanguage DEFAULT
public AcceptLanguage(Locale locale)
locale - the languagepublic AcceptLanguage(Locale locale, float qValue)
locale - the languageqValue - quality valuepublic static AcceptLanguage valueOf(String header)
header - accepted language stringpublic float getQvalue()
getQvalue in interface QualityValueCopyright © 2015. All rights reserved.