com.bea.netuix.servlets.l10n
Interface LocaleProvider

All Known Implementing Classes:
DefaultLocaleProvider

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. To register implementation, declare the fully qualified class name in WEB-INF/netuix-config.xml, like this: true com.mycompany.mypackage.MyLocaleProvider


Method Summary
 Enumeration getLocales(javax.servlet.ServletRequest request, javax.servlet.ServletContext context)
          Provides an Enumeration of Locales that can be used to determine the most appropriate response Locale.
 

Method Detail

getLocales

Enumeration getLocales(javax.servlet.ServletRequest request,
                       javax.servlet.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


Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.