LocaleProvider Interface

com.bea.netuix.servlets.l10n
LocaleProvider Interface

public interface LocaleProvider

Interface for implementations of classes that provide a set of Locales to the internal localization logic. This is useful for cases where the default list of locales taken from the ServletRequest needs be overridden.


All Known Implementing Classes
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.

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.

Parameters

request
the current ServletReqeust
context
the current ServletContext

Returns

an Enumeration of preferred Locale objects, ordered by preference