com.arsdigita.globalization
Class AcceptLanguage

java.lang.Object
  extended bycom.arsdigita.globalization.AcceptField
      extended bycom.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 $

Field Summary
static String versionId
           
 
Fields inherited from class com.arsdigita.globalization.AcceptField
DEFAULT_Q_VALUE, m_qvalue
 
Constructor Summary
AcceptLanguage(String acceptLanguage)
           Constructor.
 
Method Summary
 String getLanguage()
           
 Locale getLocale()
           
 
Methods inherited from class com.arsdigita.globalization.AcceptField
compareTo, getQValue, setQValue, setQValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

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 "*"
Method Detail

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