public class SpincastLocaleResolver extends Object implements ILocaleResolver
| Constructor and Description |
|---|
SpincastLocaleResolver(ISpincastConfig spincastConfig,
com.google.inject.Provider<IRequestContext<?>> requestContextProvider) |
| Modifier and Type | Method and Description |
|---|---|
Locale |
getLocaleToUse()
The default way to find the Locale to use is to check for
a cookie, or otherwise use the request "Accept-Language" header.
|
protected com.google.inject.Provider<IRequestContext<?>> |
getRequestContextProvider() |
protected ISpincastConfig |
getSpincastConfig() |
@Inject public SpincastLocaleResolver(ISpincastConfig spincastConfig, com.google.inject.Provider<IRequestContext<?>> requestContextProvider)
protected ISpincastConfig getSpincastConfig()
protected com.google.inject.Provider<IRequestContext<?>> getRequestContextProvider()
public Locale getLocaleToUse()
getLocaleToUse in interface ILocaleResolverISpincastConfig#getDefaultLocale()Copyright © 2016. All rights reserved.