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

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

There is a newer version: 0.9.28
Show newest version






SpincastLocaleResolver (org.spincast:spincast-framework 0.9.21 API)












org.spincast.plugins.localeresolver

Class SpincastLocaleResolver

    • Constructor Detail

      • SpincastLocaleResolver

        @Inject
        public SpincastLocaleResolver(ISpincastConfig spincastConfig,
                                               com.google.inject.Provider<IRequestContext<?>> requestContextProvider)
    • Method Detail

      • getRequestContextProvider

        protected com.google.inject.Provider<IRequestContext<?>> 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 ILocaleResolver
        Returns:
        The best Locale to use. If none is found, returns the default Locale, as defined by ISpincastConfig#getDefaultLocale()

Copyright © 2016. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy