info.magnolia.cms.i18n
Class RequestLocaleAwareI18nContentSupport

java.lang.Object
  extended by info.magnolia.cms.i18n.AbstractI18nContentSupport
      extended by info.magnolia.cms.i18n.RequestLocaleAwareI18nContentSupport
All Implemented Interfaces:
I18nContentSupport

public class RequestLocaleAwareI18nContentSupport
extends AbstractI18nContentSupport

Reads the local from the request. Attention this implementation does not render language specific URLs.


Field Summary
 
Fields inherited from class info.magnolia.cms.i18n.AbstractI18nContentSupport
defaultLocale
 
Constructor Summary
RequestLocaleAwareI18nContentSupport()
           
 
Method Summary
protected  Locale onDetermineLocale()
           
protected  String toI18NURI(String uri, Locale locale)
           
protected  String toRawURI(String i18nURI, Locale locale)
           
 
Methods inherited from class info.magnolia.cms.i18n.AbstractI18nContentSupport
addLocale, determineLocale, determineLocalFromString, getDefaultLocale, getFallbackLocale, getLocale, getLocales, getNextContentLocale, getNextLocale, getNode, getNodeData, getNodeData, getProperty, getProperty, hasProperty, isEmpty, isEmpty, isEnabled, isLocaleSupported, setDefaultLocale, setEnabled, setFallbackLocale, setLocale, setLocales, toI18NURI, toRawURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestLocaleAwareI18nContentSupport

public RequestLocaleAwareI18nContentSupport()
Method Detail

onDetermineLocale

protected Locale onDetermineLocale()
Specified by:
onDetermineLocale in class AbstractI18nContentSupport

toI18NURI

protected String toI18NURI(String uri,
                           Locale locale)
Specified by:
toI18NURI in class AbstractI18nContentSupport

toRawURI

protected String toRawURI(String i18nURI,
                          Locale locale)
Specified by:
toRawURI in class AbstractI18nContentSupport


Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.