DefaultLocaleProvider Class

com.bea.netuix.servlets.l10n
DefaultLocaleProvider Class

public class DefaultLocaleProvider

    extends Object
    implements LocaleProvider

Default implementation of LocaleProvider that uses the ServletRequest as the source of preferred Locales.


Hierarchy
Object
  DefaultLocaleProvider
All Implemented Interfaces

LocaleProvider

Constructor Summary

DefaultLocaleProvider()

 

Method Summary

public Enumeration
getLocales(ServletRequest request, ServletContext context)

Provides an Enumeration of Locales that can be used to determine the most appropriate response Locale.

 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface com.bea.netuix.servlets.l10n.LocaleProvider
getLocales
 

Constructor Detail

DefaultLocaleProvider

public DefaultLocaleProvider()
 

Method Detail

getLocales(ServletRequest, ServletContext) Method

public Enumeration getLocales(ServletRequest request, 
                              ServletContext context)

Provides an Enumeration of Locales that can be used to determine the most appropriate response Locale.

This implementation just uses the ServletRequest to obtain the set of preferred locales.

Parameters

request
the current ServletReqeust
context
the current ServletContext

Returns

an Enumeration of preferred Locale objects, ordered by preference