public class LocaleResolverDefault extends Object implements LocaleResolver
| Constructor and Description |
|---|
LocaleResolverDefault(SpincastConfig spincastConfig,
com.google.inject.Provider<RequestContext<?>> 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<RequestContext<?>> |
getRequestContextProvider() |
protected SpincastConfig |
getSpincastConfig() |
@Inject public LocaleResolverDefault(SpincastConfig spincastConfig, com.google.inject.Provider<RequestContext<?>> requestContextProvider)
protected SpincastConfig getSpincastConfig()
protected com.google.inject.Provider<RequestContext<?>> getRequestContextProvider()
public Locale getLocaleToUse()
getLocaleToUse in interface LocaleResolverSpincastConfig#getDefaultLocale()Copyright © 2019. All rights reserved.