org.zeroexchange.web.i18n
Class SimpleLocaleService

java.lang.Object
  extended by org.zeroexchange.web.i18n.SimpleLocaleService
All Implemented Interfaces:
LocaleAware, LocaleService

public class SimpleLocaleService
extends Object
implements LocaleService, LocaleAware

The service holds locale.

Author:
black

Constructor Summary
SimpleLocaleService()
           
 
Method Summary
 String getCurrentLanguage()
          Returns current language.
 String getCurrentLocale()
          Returns current locale.
 String getDefaultLanguage()
          Returns default language.
 String getDefaultLocale()
          Returns default locale.
 void setDefaultLocale(String defaultLocale)
           
 void setLocale(String locale)
          Sets the locale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleLocaleService

public SimpleLocaleService()
Method Detail

getCurrentLocale

public String getCurrentLocale()
Returns current locale.

Specified by:
getCurrentLocale in interface LocaleService

setLocale

public void setLocale(String locale)
Sets the locale

Specified by:
setLocale in interface LocaleAware

getCurrentLanguage

public String getCurrentLanguage()
Returns current language.

Specified by:
getCurrentLanguage in interface LocaleService

getDefaultLanguage

public String getDefaultLanguage()
Description copied from interface: LocaleService
Returns default language.

Specified by:
getDefaultLanguage in interface LocaleService

getDefaultLocale

public String getDefaultLocale()
Description copied from interface: LocaleService
Returns default locale.

Specified by:
getDefaultLocale in interface LocaleService

setDefaultLocale

public void setDefaultLocale(String defaultLocale)


Copyright © 2013. All Rights Reserved.