Class LanguageTag
java.lang.Object
org.glassfish.jersey.message.internal.LanguageTag
- Direct Known Subclasses:
AcceptableLanguageTag
A language tag.
- Author:
- Paul Sandoz, Marek Potociar
-
Constructor Summary
ModifierConstructorDescriptionprotected
LanguageTag
(String header) LanguageTag
(String primaryTag, String subTags) LanguageTag
(HttpHeaderReader reader) -
Method Summary
Modifier and TypeMethodDescriptionboolean
final Locale
final String
final String
final String
getTag()
int
hashCode()
final boolean
isCompatible
(Locale tag) protected final void
toString()
static LanguageTag
-
Constructor Details
-
LanguageTag
protected LanguageTag() -
LanguageTag
-
LanguageTag
- Throws:
ParseException
-
LanguageTag
- Throws:
ParseException
-
-
Method Details
-
valueOf
- Throws:
IllegalArgumentException
-
isCompatible
-
getAsLocale
-
parse
- Throws:
ParseException
-
getTag
-
getPrimaryTag
-
getSubTags
-
equals
-
hashCode
public int hashCode() -
toString
-