public class AcceptLanguageEntry extends java.lang.Object
Accept-Language
HTTP header.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_COUNTRY |
static double |
DEFAULT_QUALITY |
Constructor and Description |
---|
AcceptLanguageEntry() |
AcceptLanguageEntry(java.lang.String language,
java.lang.String country) |
AcceptLanguageEntry(java.lang.String language,
java.lang.String country,
double quality) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCountry() |
java.lang.String |
getLanguage() |
double |
getQuality() |
void |
setCountry(java.lang.String country) |
void |
setLanguage(java.lang.String language) |
void |
setQuality(double quality) |
java.util.Locale |
toLocale() |
public static final java.lang.String DEFAULT_COUNTRY
public static final double DEFAULT_QUALITY
public AcceptLanguageEntry()
public AcceptLanguageEntry(java.lang.String language, java.lang.String country, double quality)
public AcceptLanguageEntry(java.lang.String language, java.lang.String country)
public java.lang.String getLanguage()
public java.lang.String getCountry()
public double getQuality()
public void setLanguage(java.lang.String language)
public void setCountry(java.lang.String country)
public void setQuality(double quality)
public java.util.Locale toLocale()