com.github.dandelion.datatables.core.i18n
Class StandardLocaleResolver
java.lang.Object
com.github.dandelion.datatables.core.i18n.StandardLocaleResolver
- All Implemented Interfaces:
- LocaleResolver
public class StandardLocaleResolver
- extends Object
- implements LocaleResolver
Standard implementation of the LocaleResolver interface.
The locale is simply retrieved from the request.
- Since:
- 0.9.0
- Author:
- Thibault Duchateau
|
Method Summary |
Locale |
resolveLocale(javax.servlet.http.HttpServletRequest request)
Resolve the current locale with the given request. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardLocaleResolver
public StandardLocaleResolver()
resolveLocale
public Locale resolveLocale(javax.servlet.http.HttpServletRequest request)
- Resolve the current locale with the given request.
- Specified by:
resolveLocale in interface LocaleResolver
- Parameters:
request - The request used to resolve the locale.
- Returns:
- the current Locale.
Copyright © 2013–2014 Dandelion Project. All rights reserved.