Apache Tomcat 6.0.53

org.apache.tomcat.util.http
Class AcceptLanguage

java.lang.Object
  extended by org.apache.tomcat.util.http.AcceptLanguage

public class AcceptLanguage
extends java.lang.Object

Util to process the "Accept-Language" header. Used by facade to implement getLocale() and by StaticInterceptor. Not optimized - it's very slow.

Author:
James Duncan Davidson [duncan@eng.sun.com], James Todd [gonzo@eng.sun.com], Jason Hunter [jch@eng.sun.com], Harish Prabandham, costin@eng.sun.com

Constructor Summary
AcceptLanguage()
           
 
Method Summary
static java.util.Locale getLocale(java.lang.String acceptLanguage)
           
static java.util.Enumeration getLocales(java.lang.String acceptLanguage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AcceptLanguage

public AcceptLanguage()
Method Detail

getLocale

public static java.util.Locale getLocale(java.lang.String acceptLanguage)

getLocales

public static java.util.Enumeration getLocales(java.lang.String acceptLanguage)

Apache Tomcat 6.0.53

Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.