|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.fulcrum.localization.LocaleTokenizer
public class LocaleTokenizer
Parses the HTTP Accept-Language header as per section
14.4 of RFC 2068 (HTTP 1.1 header field definitions).
| Nested Class Summary | |
|---|---|
protected static class |
LocaleTokenizer.AcceptLanguage
Struct representing an element of the HTTP Accept-Language header. |
| Field Summary | |
|---|---|
protected static Float |
DEFAULT_QUALITY
The default quality value for an AcceptLanguage
object. |
| Constructor Summary | |
|---|---|
LocaleTokenizer(String header)
Parses the Accept-Language header. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
Object |
next()
Creates a Locale from the next element of the
Accept-Language header. |
void |
remove()
Not implemented. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Float DEFAULT_QUALITY
AcceptLanguage
object.
| Constructor Detail |
|---|
public LocaleTokenizer(String header)
Accept-Language header.
header - The Accept-Language header
(i.e. en, es;q=0.8, zh-TW;q=0.1).| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iteratorpublic Object next()
Locale from the next element of the
Accept-Language header.
next in interface IteratorLocale.
NoSuchElementException - No more locales.public final void remove()
remove in interface Iterator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||