A C D F G H I L N O R S

A

ACCEPT_LANGUAGE - Static variable in interface org.apache.fulcrum.localization.LocalizationService
A constant for the HTTP Accept-Language header.

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

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.

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, Object) - Method in interface org.apache.fulcrum.localization.SimpleLocalizationService
Formats a localized value using the provided objects.
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
 
format(String, Locale, String, Object, Object) - Method in class org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
 
format(String, Locale, String, Object[]) - Method in class org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
Looks up the value for key in the ResourceBundle referenced by bundleName, then formats that value for the specified Locale using args.

G

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(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(String, HttpServletRequest) - 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 which is stored in HttpServletRequest.
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(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, HttpServletRequest) - Method in interface org.apache.fulcrum.localization.LocalizationService
Convenience method to get a ResourceBundle based on name and HTTP Accept-Language header from a HttpServletRequest.
getBundle() - Method in interface org.apache.fulcrum.localization.SimpleLocalizationService
Convenience method to get the default ResourceBundle.
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, Locale) - Method in interface org.apache.fulcrum.localization.SimpleLocalizationService
Convenience method to get a ResourceBundle based on name and Locale.
getBundle() - Method in class org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
 
getBundle(String) - Method in class org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
 
getBundle(String, Locale) - Method in class org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
This method returns a ResourceBundle for the given bundle name and the given Locale.
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(String) - 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 the HttpServletRequest object and then parse it.
getLocale(String) - Method in interface org.apache.fulcrum.localization.LocalizationService
Parses the Accept-Language header and attempts to create a Locale from it.
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

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.
LocaleTokenizer.AcceptLanguage() - Constructor for class org.apache.fulcrum.localization.LocaleTokenizer.AcceptLanguage
 
LocalizationService - Interface in org.apache.fulcrum.localization
Provides localization functionality using the interface provided by ResourceBundle, plus leverages a "search path" style traversal of the ResourceBundle objects named by the locale.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 the Accept-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 the ResourceBundle objects named by the locale.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.

A C D F G H I L N O R S

Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.