类 AbstractLocaleResolver

java.lang.Object
cn.taketoday.web.i18n.AbstractLocaleResolver
所有已实现的接口:
LocaleResolver
直接已知子类:
AbstractLocaleContextResolver

public abstract class AbstractLocaleResolver extends Object implements LocaleResolver
Abstract base class for LocaleResolver implementations. Provides support for a default locale.
从以下版本开始:
4.0
作者:
Juergen Hoeller
另请参阅:
  • 字段详细资料

    • defaultLocale

      @Nullable private Locale defaultLocale
  • 构造器详细资料

    • AbstractLocaleResolver

      public AbstractLocaleResolver()
  • 方法详细资料

    • setDefaultLocale

      public void setDefaultLocale(@Nullable Locale defaultLocale)
      Set a default Locale that this resolver will return if no other locale found.
    • getDefaultLocale

      @Nullable protected Locale getDefaultLocale()
      Return the default Locale that this resolver is supposed to fall back to, if any.