Class AcceptHeaderLocaleResolver

  • All Implemented Interfaces:
    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.

    Since:
    27.02.2003
    Author:
    Juergen Hoeller, Rossen Stoyanchev
    See Also:
    ServletRequest.getLocale()