Interface LocaleResolver

All Known Subinterfaces:
HttpRequestXLanguageLocaleResolver, RequestParameterLocaleResolver
All Known Implementing Classes:
HttpRequestXLanguageLocaleResolverImpl, PrincipalLocaleResolver, RequestParameterLocaleResolverImpl

public interface LocaleResolver
A LocaleResolver is responsible for detecting the current locales.

At any time the system can ask the resolver with getPreferredLocales() what the current locales are.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the current locales in order of preference.
  • Field Details

  • Method Details

    • getPreferredLocales

      Set<Locale> getPreferredLocales()
      Return the current locales in order of preference.
      Returns:
      Unmodifiable, may be empty.