All Downloads are FREE. Search and download functionalities are using the official Maven repository.

public.javadoc.org.spincast.plugins.localeresolver.LocaleResolverDefault.html Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version






LocaleResolverDefault (org.spincast:spincast-framework 1.0.0 API)












org.spincast.plugins.localeresolver

Class LocaleResolverDefault

    • Constructor Detail

      • LocaleResolverDefault

        @Inject
        public LocaleResolverDefault(SpincastConfig spincastConfig,
                                              com.google.inject.Provider<RequestContext<?>> requestContextProvider)
    • Method Detail

      • getRequestContextProvider

        protected com.google.inject.Provider<RequestContext<?>> getRequestContextProvider()
      • getLocaleToUse

        public 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.
        Specified by:
        getLocaleToUse in interface LocaleResolver
        Returns:
        The best Locale to use. If none is found, returns the default Locale, as defined by SpincastConfig#getDefaultLocale()

Copyright © 2019. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy