info.magnolia.module.blossom.context
Class MagnoliaLocaleResolver

java.lang.Object
  extended by info.magnolia.module.blossom.context.MagnoliaLocaleResolver
All Implemented Interfaces:
org.springframework.web.servlet.LocaleResolver

public class MagnoliaLocaleResolver
extends Object
implements org.springframework.web.servlet.LocaleResolver

Exposes the Locale used by Magnolia to Spring Web MVC.

Since:
1.0

Constructor Summary
MagnoliaLocaleResolver()
           
 
Method Summary
 Locale resolveLocale(javax.servlet.http.HttpServletRequest request)
           
 void setLocale(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Locale locale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MagnoliaLocaleResolver

public MagnoliaLocaleResolver()
Method Detail

resolveLocale

public Locale resolveLocale(javax.servlet.http.HttpServletRequest request)
Specified by:
resolveLocale in interface org.springframework.web.servlet.LocaleResolver

setLocale

public void setLocale(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response,
                      Locale locale)
Specified by:
setLocale in interface org.springframework.web.servlet.LocaleResolver


Copyright © 2009-2012 Magnolia International Ltd.. All Rights Reserved.