net.fckeditor.localization.impl
Class AcceptLanguageHeaderResolver
java.lang.Object
net.fckeditor.localization.impl.AcceptLanguageHeaderResolver
- All Implemented Interfaces:
- LocaleResolver
public class AcceptLanguageHeaderResolver
- extends Object
- implements LocaleResolver
HTTP header implementation of the locale resolver. It resolves the current
user locale by calling ServletRequest.getLocale()
if and only if the
Accept-Language
header is not empty.
- Version:
- $Id: AcceptLanguageHeaderResolver.java 3759 2009-06-22 20:02:26Z mosipov $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AcceptLanguageHeaderResolver
public AcceptLanguageHeaderResolver()
resolveLocale
public Locale resolveLocale(HttpServletRequest request)
- Description copied from interface:
LocaleResolver
- Returns the locale of a given request.
- Specified by:
resolveLocale
in interface LocaleResolver
- Parameters:
request
- the current request instance
- Returns:
- the locale of the request,
null
if the locale
couldn't be resolved
Copyright © 2004-2009 Frederico Caldeira Knabben. All Rights Reserved.