# Uses of Interface
org.springframework.web.servlet.LocaleResolver

Packages that use LocaleResolver
Package
Description
org.springframework.web.servlet
Provides servlets that integrate with the application context infrastructure, and the core interfaces and classes for the Spring web MVC framework.
org.springframework.web.servlet.config.annotation
Annotation-based setup for Spring MVC.
org.springframework.web.servlet.i18n
Locale support classes for Spring's web MVC framework.
org.springframework.web.servlet.mvc.method.annotation
MVC infrastructure for annotation-based handler method processing, building on the `org.springframework.web.method.annotation` package.
org.springframework.web.servlet.support
Support classes for Spring's web MVC framework.

## Uses of LocaleResolver in org.springframework.web.servlet

Subinterfaces of LocaleResolver in org.springframework.web.servlet
Modifier and Type
Interface
Description
`interface`
`LocaleContextResolver`
Extension of `LocaleResolver` that adds support for a rich locale context (potentially including locale and time zone information).

## Uses of LocaleResolver in org.springframework.web.servlet.config.annotation

Methods in org.springframework.web.servlet.config.annotation that return LocaleResolver
Modifier and Type
Method
Description
`LocaleResolver`
WebMvcConfigurationSupport.`localeResolver()`

## Uses of LocaleResolver in org.springframework.web.servlet.i18n

Classes in org.springframework.web.servlet.i18n that implement LocaleResolver
Modifier and Type
Class
Description
`class`
`AbstractLocaleContextResolver`
Abstract base class for `LocaleContextResolver` implementations.
`class`
`AbstractLocaleResolver`
Abstract base class for `LocaleResolver` implementations.
`class`
`AcceptHeaderLocaleResolver`
`LocaleResolver` implementation that looks for a match between locales in the `Accept-Language` header and a list of configured supported locales.
`class`
`CookieLocaleResolver`
`LocaleResolver` implementation that uses a cookie sent back to the user in case of a custom setting, with a fallback to the configured default locale, the request's `Accept-Language` header, or the default locale for the server.
`class`
`FixedLocaleResolver`
`LocaleResolver` implementation that always returns a fixed default locale and optionally time zone.
`class`
`SessionLocaleResolver`
`LocaleResolver` implementation that uses a locale attribute in the user's session in case of a custom setting, with a fallback to the configured default locale, the request's `Accept-Language` header, or the default locale for the server.

## Uses of LocaleResolver in org.springframework.web.servlet.mvc.method.annotation

Constructors in org.springframework.web.servlet.mvc.method.annotation with parameters of type LocaleResolver
Modifier
Constructor
Description
``
`ResponseBodyEmitterReturnValueHandler(List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters, org.springframework.core.ReactiveAdapterRegistry registry, org.springframework.core.task.TaskExecutor executor, org.springframework.web.accept.ContentNegotiationManager manager, List<ViewResolver> viewResolvers, LocaleResolver localeResolver)`
Constructor that with added arguments for view rendering.

## Uses of LocaleResolver in org.springframework.web.servlet.support

Methods in org.springframework.web.servlet.support that return LocaleResolver
Modifier and Type
Method
Description
`static LocaleResolver`
RequestContextUtils.`getLocaleResolver(HttpServletRequest request)`
Return the `LocaleResolver` that has been bound to the request by the `DispatcherServlet`.