类 AbstractLocaleResolver
- java.lang.Object
- org.springframework.web.servlet.i18n.AbstractLocaleResolver
- 所有已实现的接口:
LocaleResolver
public abstract class AbstractLocaleResolver extends Object implements LocaleResolver
Abstract base class forLocaleResolver
implementations. Provides support for a default locale.- 从以下版本开始:
- 1.2.9
- 作者:
- Juergen Hoeller
- 另请参阅:
setDefaultLocale(java.util.Locale)
构造器概要
构造器 构造器 说明 AbstractLocaleResolver()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected Locale
getDefaultLocale()
Return the default Locale that this resolver is supposed to fall back to, if any.void
setDefaultLocale(Locale defaultLocale)
Set a default Locale that this resolver will return if no other locale found.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 org.springframework.web.servlet.LocaleResolver
resolveLocale, setLocale
构造器详细资料
AbstractLocaleResolver
public AbstractLocaleResolver()
方法详细资料
setDefaultLocale
public void setDefaultLocale(Locale defaultLocale)
Set a default Locale that this resolver will return if no other locale found.
getDefaultLocale
protected Locale getDefaultLocale()
Return the default Locale that this resolver is supposed to fall back to, if any.