public.javadoc.org.spincast.core.locale.LocaleResolver.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
LocaleResolver (org.spincast:spincast-framework 1.0.0 API)
org.spincast.core.locale
Interface LocaleResolver
-
- All Known Implementing Classes:
- LocaleResolverDefault
public interface LocaleResolver
Component which finds the best Locale to use, using a cookie, a
Accept-Language
header or using a custom way.
-
-
Method Summary
All Methods Instance Methods Abstract Methods
Modifier and Type
Method and Description
Locale
getLocaleToUse()
The best Locale to use.
-
-
Method Detail
-
getLocaleToUse
Locale getLocaleToUse()
The best Locale to use.
- Returns:
- The best Locale to use. If none is found, returns
the default Locale, as defined by
SpincastConfig#getDefaultLocale()
Copyright © 2019. All rights reserved.