Package | Description |
---|---|
org.springframework.web.server.adapter |
Implementations to adapt to the underlying
org.springframework.http.client.reactive reactive HTTP adapter
and HttpHandler . |
org.springframework.web.server.i18n |
Locale related support classes.
|
Modifier and Type | Method and Description |
---|---|
LocaleContextResolver |
HttpWebHandlerAdapter.getLocaleContextResolver()
Return the configured
LocaleContextResolver . |
Modifier and Type | Method and Description |
---|---|
WebHttpHandlerBuilder |
WebHttpHandlerBuilder.localeContextResolver(LocaleContextResolver localeContextResolver)
Configure the
LocaleContextResolver to set on the
WebServerExchange . |
void |
HttpWebHandlerAdapter.setLocaleContextResolver(LocaleContextResolver localeContextResolver)
Configure a custom
LocaleContextResolver . |
Constructor and Description |
---|
DefaultServerWebExchange(ServerHttpRequest request,
ServerHttpResponse response,
WebSessionManager sessionManager,
ServerCodecConfigurer codecConfigurer,
LocaleContextResolver localeContextResolver) |
Modifier and Type | Class and Description |
---|---|
class |
AcceptHeaderLocaleContextResolver
LocaleContextResolver 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). |
class |
FixedLocaleContextResolver
LocaleContextResolver implementation that always returns
a fixed default locale and optionally time zone. |