org.apache.jetspeed.services.customlocalization
Interface CustomLocalizationService

All Superinterfaces:
org.apache.turbine.services.Initable, org.apache.turbine.services.localization.LocalizationService, org.apache.turbine.services.Service
All Known Implementing Classes:
JetspeedLocalizationService

public interface CustomLocalizationService
extends org.apache.turbine.services.localization.LocalizationService

Custom Localization allows for the localization properties to changed dynamically, without shutting down the application server.

Version:
$Id: CustomLocalizationService.java,v 1.6 2005/03/21 18:21:43 sgala Exp $
Author:
Dessė Massimiliano

Field Summary
static java.lang.String ACCEPT_LANGUAGE
           
static java.lang.String SERVICE_NAME
           
 
Method Summary
 java.util.ResourceBundle getBundle(org.apache.turbine.util.RunData data)
          Get the resource bundle given the state of the current request.
 java.util.Locale getLocale(org.apache.turbine.util.RunData data)
          Get the locale from the session first, then fallback to normal request headers.
 
Methods inherited from interface org.apache.turbine.services.localization.LocalizationService
getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getDefaultBundleName, getLocale, getLocale, getString, setBundle
 
Methods inherited from interface org.apache.turbine.services.Service
getConfiguration, getName, getProperties, setName, setServiceBroker
 
Methods inherited from interface org.apache.turbine.services.Initable
getInit, init, init, setInitableBroker, shutdown
 

Field Detail

SERVICE_NAME

public static final java.lang.String SERVICE_NAME
See Also:
Constant Field Values

ACCEPT_LANGUAGE

public static final java.lang.String ACCEPT_LANGUAGE
See Also:
Constant Field Values
Method Detail

getLocale

public java.util.Locale getLocale(org.apache.turbine.util.RunData data)
Get the locale from the session first, then fallback to normal request headers.

Parameters:
data -
Returns:
Current locale based on state.

getBundle

public java.util.ResourceBundle getBundle(org.apache.turbine.util.RunData data)
Get the resource bundle given the state of the current request.

Parameters:
data -
Returns:
The matched resource bundled.


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.