Class w3c.mime.Language
All Packages Class Hierarchy This Package Previous Next Index
Class w3c.mime.Language
java.lang.Object
|
+----w3c.mime.Language
- public class Language
- extends Object
This class is used to compare content languages. Request
accept-language header are parsed into an array of these objects,
which can be matched against some language string.
FIXME I should really, like for MIME types have a Language class,
inherited by some other AcceptLanguage, BTW MIMEType and Accept MIMEType.
-
getQuality()
- Get this language quality, should be a method of AcceptLanguage.
-
match(String)
- Does the given language matches this one.
match
public int match(String another)
- Does the given language matches this one.
- Parameters:
- another - The language to match.
- Returns:
- A value indicating how well these languages match, a negative
value indicate that they don't match at all.
getQuality
public double getQuality()
- Get this language quality, should be a method of AcceptLanguage.
- Returns:
- A quality (double) indicating how well this language is
accepted.
All Packages Class Hierarchy This Package Previous Next Index