com.arsdigita.globalization
Class AcceptLanguage
java.lang.Object
com.arsdigita.globalization.AcceptField
com.arsdigita.globalization.AcceptLanguage
- All Implemented Interfaces:
- Comparable
- public class AcceptLanguage
- extends AcceptField
Represents one of possibly many of the values of the Accept-Language HTTP
headers.
- Version:
- $Revision: #7 $ $Date: 2004/04/07 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
versionId
public static final String versionId
- See Also:
- Constant Field Values
AcceptLanguage
public AcceptLanguage(String acceptLanguage)
Constructor.
- Parameters:
acceptLanguage
- String representing one entry from the
Accept-Language HTTP headers. This can look like: "en" or "en;
q=0.75" or "*"
getLanguage
public final String getLanguage()
getLocale
public final Locale getLocale()
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC