Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- ACCEPT_LANGUAGE - Static variable in interface org.apache.fulcrum.localization.LocalizationService
-
A constant for the HTTP
Accept-Language
header. - AcceptLanguage() - Constructor for class org.apache.fulcrum.localization.LocaleTokenizer.AcceptLanguage
C
- compareTo(Object) - Method in class org.apache.fulcrum.localization.LocaleTokenizer.AcceptLanguage
- configure(Configuration) - Method in class org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
-
Avalon lifecycle method
Configurable
D
- DEFAULT_QUALITY - Static variable in class org.apache.fulcrum.localization.LocaleTokenizer
-
The default quality value for an
AcceptLanguage
object. - DefaultLocalizationService - Class in org.apache.fulcrum.localization
-
This class is the single point of access to all localization resources.
- DefaultLocalizationService() - Constructor for class org.apache.fulcrum.localization.DefaultLocalizationService
-
Creates a new instance.
E
- equals(Object) - Method in class org.apache.fulcrum.localization.LocaleTokenizer.AcceptLanguage
F
- format(String, Locale, String, Object) - Method in interface org.apache.fulcrum.localization.SimpleLocalizationService
-
Formats a localized value using the provided object.
- format(String, Locale, String, Object) - Method in class org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
- format(String, Locale, String, Object[]) - Method in interface org.apache.fulcrum.localization.SimpleLocalizationService
-
Formats a localized value using the provided objects.
- format(String, Locale, String, Object[]) - Method in class org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
-
Looks up the value for
key
in theResourceBundle
referenced bybundleName
, then formats that value for the specifiedLocale
usingargs
. - format(String, Locale, String, Object, Object) - Method in interface org.apache.fulcrum.localization.SimpleLocalizationService
-
Formats a localized value using the provided objects.
- format(String, Locale, String, Object, Object) - Method in class org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
G
- getBundle() - Method in interface org.apache.fulcrum.localization.SimpleLocalizationService
-
Convenience method to get the default
ResourceBundle
. - getBundle() - Method in class org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
- getBundle(HttpServletRequest) - Method in class org.apache.fulcrum.localization.DefaultLocalizationService
-
This method returns a ResourceBundle given the Locale information supplied in the HTTP "Accept-Language" header which is stored in HttpServletRequest.
- getBundle(HttpServletRequest) - Method in interface org.apache.fulcrum.localization.LocalizationService
-
Convenience method to get a ResourceBundle based on HTTP Accept-Language header in HttpServletRequest.
- getBundle(String) - Method in interface org.apache.fulcrum.localization.SimpleLocalizationService
-
Returns a ResourceBundle given the bundle name and the default locale information supplied by the configuration.
- getBundle(String) - Method in class org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
- getBundle(String, HttpServletRequest) - Method in class org.apache.fulcrum.localization.DefaultLocalizationService
- getBundle(String, HttpServletRequest) - Method in interface org.apache.fulcrum.localization.LocalizationService
-
Convenience method to get a
ResourceBundle
based on name and HTTPAccept-Language
header from aHttpServletRequest
. - getBundle(String, String) - Method in class org.apache.fulcrum.localization.DefaultLocalizationService
-
This method returns a ResourceBundle given the bundle name and the Locale information supplied in the HTTP "Accept-Language" header.
- getBundle(String, String) - Method in interface org.apache.fulcrum.localization.LocalizationService
-
Convenience method to get a ResourceBundle based on name and HTTP
Accept-Language
header. - getBundle(String, Locale) - Method in interface org.apache.fulcrum.localization.SimpleLocalizationService
-
Convenience method to get a ResourceBundle based on name and Locale.
- getBundle(String, Locale) - Method in class org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
- getBundleNames() - Method in interface org.apache.fulcrum.localization.SimpleLocalizationService
-
Retrieves the list of names of bundles to search by default for
ResourceBundle
keys (as specified in the config file). - getBundleNames() - Method in class org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
- getDefaultBundleName() - Method in interface org.apache.fulcrum.localization.SimpleLocalizationService
-
Retrieves the name of the default bundle (as specified in the config file), or the first in the list if there are more than one.
- getDefaultBundleName() - Method in class org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
- getDefaultCountry() - Method in interface org.apache.fulcrum.localization.SimpleLocalizationService
-
Retrieves the default country (as specified in the config file).
- getDefaultCountry() - Method in class org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
-
Retrieves the default country (specified in the config file).
- getDefaultLanguage() - Method in interface org.apache.fulcrum.localization.SimpleLocalizationService
-
Retrieves the default language (as specified in the config file).
- getDefaultLanguage() - Method in class org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
-
Retrieves the default language (specified in the config file).
- getDefaultLocale() - Method in interface org.apache.fulcrum.localization.SimpleLocalizationService
-
Retrieves the default Locale (as created from default language and default country).
- getDefaultLocale() - Method in class org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
-
Retrieves the default Locale (as created from default language and default country).
- getLocale(HttpServletRequest) - Method in class org.apache.fulcrum.localization.DefaultLocalizationService
- getLocale(HttpServletRequest) - Method in interface org.apache.fulcrum.localization.LocalizationService
-
Attempts to pull the
Accept-Language
header out of theHttpServletRequest
object and then parse it. - getLocale(String) - Method in class org.apache.fulcrum.localization.DefaultLocalizationService
- getLocale(String) - Method in interface org.apache.fulcrum.localization.LocalizationService
-
Parses the
Accept-Language
header and attempts to create aLocale
from it. - getString(String) - Method in interface org.apache.fulcrum.localization.SimpleLocalizationService
-
Returns the value for the key in the default bundle and the default locale.
- getString(String) - Method in class org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
-
Returns the value for the key in the default bundle and the default locale.
- getString(String, Locale, String) - Method in interface org.apache.fulcrum.localization.SimpleLocalizationService
-
Tries very hard to return a value, looking first in the specified bundle, then searching list of default bundles (giving precedence to earlier bundles over later bundles).
- getString(String, Locale, String) - Method in class org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
- getStringOrNull(ResourceBundle, String) - Method in class org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
-
Gets localized text from a bundle if it's there.
H
- hashCode() - Method in class org.apache.fulcrum.localization.LocaleTokenizer.AcceptLanguage
- hasNext() - Method in class org.apache.fulcrum.localization.LocaleTokenizer
I
- initBundleNames(String[]) - Method in class org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
-
Initialize list of default bundle names.
- initialize() - Method in class org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
-
Called the first time the Service is used.
L
- LocaleTokenizer - Class in org.apache.fulcrum.localization
-
Parses the HTTP
Accept-Language
header as per section 14.4 of RFC 2068 (HTTP 1.1 header field definitions). - LocaleTokenizer(String) - Constructor for class org.apache.fulcrum.localization.LocaleTokenizer
-
Parses the
Accept-Language
header. - LocaleTokenizer.AcceptLanguage - Class in org.apache.fulcrum.localization
-
Struct representing an element of the HTTP
Accept-Language
header. - LocalizationService - Interface in org.apache.fulcrum.localization
-
Provides localization functionality using the interface provided by
ResourceBundle
, plus leverages a "search path" style traversal of theResourceBundle
objects named by thelocale.default.bundles
to discover a value for a given key.
N
- next() - Method in class org.apache.fulcrum.localization.LocaleTokenizer
-
Creates a
Locale
from the next element of theAccept-Language
header.
O
- org.apache.fulcrum.localization - package org.apache.fulcrum.localization
R
- remove() - Method in class org.apache.fulcrum.localization.LocaleTokenizer
-
Not implemented.
- ROLE - Static variable in interface org.apache.fulcrum.localization.LocalizationService
- ROLE - Static variable in interface org.apache.fulcrum.localization.SimpleLocalizationService
S
- SERVICE_NAME - Static variable in interface org.apache.fulcrum.localization.LocalizationService
- SERVICE_NAME - Static variable in interface org.apache.fulcrum.localization.SimpleLocalizationService
- setBundle(String) - Method in interface org.apache.fulcrum.localization.SimpleLocalizationService
-
This method sets the name of the defaultBundle.
- setBundle(String) - Method in class org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
-
This method sets the name of the first bundle in the search list (the "default" bundle).
- SimpleLocalizationService - Interface in org.apache.fulcrum.localization
-
Provides localization functionality using the interface provided by
ResourceBundle
, plus leverages a "search path" style traversal of theResourceBundle
objects named by thelocale.default.bundles
to discover a value for a given key. - SimpleLocalizationServiceImpl - Class in org.apache.fulcrum.localization
-
This class is the single point of access to all localization resources.
- SimpleLocalizationServiceImpl() - Constructor for class org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
-
Creates a new instance.
All Classes and Interfaces|All Packages|Constant Field Values