类 AcceptHeaderLocaleResolver

  • 所有已实现的接口:
    LocaleResolver

    public class AcceptHeaderLocaleResolver
    extends Object
    implements LocaleResolver
    LocaleResolver implementation that simply uses the primary locale specified in the "accept-language" header of the HTTP request (that is, the locale sent by the client browser, normally that of the client's OS).

    Note: Does not support setLocale, since the accept header can only be changed through changing the client's locale settings.

    从以下版本开始:
    27.02.2003
    作者:
    Juergen Hoeller, Rossen Stoyanchev
    另请参阅:
    ServletRequest.getLocale()