spring-framework / org.springframework.web.servlet.i18n / AcceptHeaderLocaleResolver / <init>

<init>

AcceptHeaderLocaleResolver()

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.

Author
Juergen Hoeller

Author
Rossen Stoyanchev

Since
27.02.2003

See Also
javax.servlet.http.HttpServletRequest#getLocale()