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.

Version:
$Id: RequestLocaleAwareI18nContentSupport.java 41137 2011-01-06 18:19:25Z gjoseph $
Author:
philipp

Field Summary
 
Fields inherited from class info.magnolia.cms.i18n.AbstractI18nContentSupport
defaultLocale
 
Constructor Summary
RequestLocaleAwareI18nContentSupport()
           
 
Method Summary
protected  java.util.Locale onDetermineLocale()
           
protected  java.lang.String toI18NURI(java.lang.String uri, java.util.Locale locale)
           
protected  java.lang.String toRawURI(java.lang.String i18nURI, java.util.Locale locale)
           
 
Methods inherited from class info.magnolia.cms.i18n.AbstractI18nContentSupport
addLocale, determineLocale, determineLocalFromString, getDefaultLocale, getFallbackLocale, getLocale, getLocales, getNextContentLocale, getNextLocale, getNodeData, getNodeData, isEmpty, isEnabled, isLocaleSupported, setDefaultLocale, setEnabled, setFallbackLocale, setLocale, 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 java.util.Locale onDetermineLocale()
Specified by:
onDetermineLocale in class AbstractI18nContentSupport

toI18NURI

protected java.lang.String toI18NURI(java.lang.String uri,
                                     java.util.Locale locale)
Specified by:
toI18NURI in class AbstractI18nContentSupport

toRawURI

protected java.lang.String toRawURI(java.lang.String i18nURI,
                                    java.util.Locale locale)
Specified by:
toRawURI in class AbstractI18nContentSupport


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