| java.lang.Object org.apache.turbine.services.localization.LocaleTokenizer
LocaleTokenizer | public class LocaleTokenizer implements Iterator(Code) | | Parses the HTTP Accept-Language header as per section
14.4 of RFC 2068 (HTTP 1.1 header field definitions).
author: Daniel Rall version: $Id: LocaleTokenizer.java 534527 2007-05-02 16:10:59Z tv $ |
Constructor Summary | |
public | LocaleTokenizer(String header) Parses the Accept-Language header.
Parameters: header - The Accept-Language header(i.e. |
Method Summary | |
public boolean | hasNext() | public Object | next() Creates a Locale from the next element of the
Accept-Language header. | final public void | remove() Not implemented. |
LocaleTokenizer | public LocaleTokenizer(String header)(Code) | | Parses the Accept-Language header.
Parameters: header - The Accept-Language header(i.e. en, es;q=0.8, zh-TW;q=0.1 ). |
hasNext | public boolean hasNext()(Code) | | Whether there are more locales. |
next | public Object next()(Code) | | Creates a Locale from the next element of the
Accept-Language header.
The next highest-rated Locale . throws: NoSuchElementException - No more locales. |
remove | final public void remove()(Code) | | Not implemented.
|
|
|