|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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:
<localization>
<enable>true</enable>
<default-locale language="en" country="US"/>
<locale-provider>com.mycompany.mypackage.MyLocaleProvider</locale-provider>
</localization>
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 |
---|
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.
request
- the current ServletReqeust
context
- the current ServletContext
Enumeration
of preferred Locale
objects, ordered by preference
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.