Package | Description |
---|---|
org.springframework.web.bind.support |
Support classes for web data binding.
|
org.springframework.web.cors.reactive |
Reactive support for CORS (Cross-Origin Resource Sharing),
based on a common
CorsProcessor strategy. |
org.springframework.web.filter.reactive |
WebFilter implementations for use in
reactive web applications. |
org.springframework.web.server |
Core interfaces and classes for Spring's generic, reactive web support.
|
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.handler |
Provides common WebHandler implementations and a
WebHandlerDecorator . |
org.springframework.web.server.i18n |
Locale related support classes.
|
org.springframework.web.server.session |
Auxiliary interfaces and implementation classes for
WebSession support. |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
WebExchangeDataBinder.bind(ServerWebExchange exchange)
Bind query parameters, form data, or multipart form data to the binder target.
|
static reactor.core.publisher.Mono<Map<String,Object>> |
WebExchangeDataBinder.extractValuesToBind(ServerWebExchange exchange)
Combine query params and form data for multipart form data from the body
of the request into a
Map<String, Object> of values to use for
data binding purposes. |
reactor.core.publisher.Mono<Map<String,Object>> |
WebExchangeDataBinder.getValuesToBind(ServerWebExchange exchange)
Obtain the values for data binding.
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
PreFlightRequestWebFilter.filter(ServerWebExchange exchange,
WebFilterChain chain) |
reactor.core.publisher.Mono<Void> |
CorsWebFilter.filter(ServerWebExchange exchange,
WebFilterChain chain) |
CorsConfiguration |
CorsConfigurationSource.getCorsConfiguration(ServerWebExchange exchange)
Return a
CorsConfiguration based on the incoming request. |
CorsConfiguration |
UrlBasedCorsConfigurationSource.getCorsConfiguration(ServerWebExchange exchange) |
protected boolean |
DefaultCorsProcessor.handleInternal(ServerWebExchange exchange,
CorsConfiguration config,
boolean preFlightRequest)
Handle the given request.
|
reactor.core.publisher.Mono<Void> |
PreFlightRequestHandler.handlePreFlight(ServerWebExchange exchange)
Handle a pre-flight request by finding and applying the CORS configuration
that matches the expected actual request.
|
boolean |
DefaultCorsProcessor.process(CorsConfiguration config,
ServerWebExchange exchange) |
boolean |
CorsProcessor.process(CorsConfiguration configuration,
ServerWebExchange exchange)
Process a request using the given
CorsConfiguration . |
Modifier and Type | Method and Description |
---|---|
static Optional<ServerWebExchange> |
ServerWebExchangeContextFilter.get(reactor.util.context.Context context)
Access the
ServerWebExchange from the Reactor Context, if available,
which is if ServerWebExchangeContextFilter is configured for use
and the give context was obtained from a request processing chain. |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
ServerWebExchangeContextFilter.filter(ServerWebExchange exchange,
WebFilterChain chain) |
reactor.core.publisher.Mono<Void> |
ForwardedHeaderFilter.filter(ServerWebExchange exchange,
WebFilterChain chain)
Deprecated.
|
reactor.core.publisher.Mono<Void> |
HiddenHttpMethodFilter.filter(ServerWebExchange exchange,
WebFilterChain chain)
Transform an HTTP POST into another method based on
methodParamName . |
Modifier and Type | Class and Description |
---|---|
class |
ServerWebExchangeDecorator
A convenient base class for classes that need to wrap another
ServerWebExchange . |
Modifier and Type | Method and Description |
---|---|
ServerWebExchange |
ServerWebExchange.Builder.build()
Build a
ServerWebExchange decorator with the mutated properties. |
ServerWebExchange |
ServerWebExchangeDecorator.getDelegate() |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
WebFilterChain.filter(ServerWebExchange exchange)
Delegate to the next
WebFilter in the chain. |
reactor.core.publisher.Mono<Void> |
WebFilter.filter(ServerWebExchange exchange,
WebFilterChain chain)
Process the Web request and (optionally) delegate to the next
WebFilter through the given WebFilterChain . |
reactor.core.publisher.Mono<Void> |
WebHandler.handle(ServerWebExchange exchange)
Handle the web server exchange.
|
reactor.core.publisher.Mono<Void> |
WebExceptionHandler.handle(ServerWebExchange exchange,
Throwable ex)
Handle the given exception.
|
Constructor and Description |
---|
ServerWebExchangeDecorator(ServerWebExchange delegate) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultServerWebExchange
Default implementation of
ServerWebExchange . |
Modifier and Type | Method and Description |
---|---|
protected ServerWebExchange |
HttpWebHandlerAdapter.createExchange(ServerHttpRequest request,
ServerHttpResponse response) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
DefaultWebFilterChain.filter(ServerWebExchange exchange) |
reactor.core.publisher.Mono<Void> |
WebHandlerDecorator.handle(ServerWebExchange exchange) |
reactor.core.publisher.Mono<Void> |
FilteringWebHandler.handle(ServerWebExchange exchange) |
reactor.core.publisher.Mono<Void> |
ExceptionHandlingWebHandler.handle(ServerWebExchange exchange) |
reactor.core.publisher.Mono<Void> |
ResponseStatusExceptionHandler.handle(ServerWebExchange exchange,
Throwable ex) |
Modifier and Type | Method and Description |
---|---|
org.springframework.context.i18n.LocaleContext |
FixedLocaleContextResolver.resolveLocaleContext(ServerWebExchange exchange) |
org.springframework.context.i18n.LocaleContext |
AcceptHeaderLocaleContextResolver.resolveLocaleContext(ServerWebExchange exchange) |
org.springframework.context.i18n.LocaleContext |
LocaleContextResolver.resolveLocaleContext(ServerWebExchange exchange)
Resolve the current locale context via the given exchange.
|
void |
FixedLocaleContextResolver.setLocaleContext(ServerWebExchange exchange,
org.springframework.context.i18n.LocaleContext localeContext) |
void |
AcceptHeaderLocaleContextResolver.setLocaleContext(ServerWebExchange exchange,
org.springframework.context.i18n.LocaleContext locale) |
void |
LocaleContextResolver.setLocaleContext(ServerWebExchange exchange,
org.springframework.context.i18n.LocaleContext localeContext)
Set the current locale context to the given one,
potentially including a locale with associated time zone information.
|
Modifier and Type | Method and Description |
---|---|
void |
HeaderWebSessionIdResolver.expireSession(ServerWebExchange exchange) |
void |
CookieWebSessionIdResolver.expireSession(ServerWebExchange exchange) |
void |
WebSessionIdResolver.expireSession(ServerWebExchange exchange)
Instruct the client to end the current session.
|
reactor.core.publisher.Mono<WebSession> |
DefaultWebSessionManager.getSession(ServerWebExchange exchange) |
reactor.core.publisher.Mono<WebSession> |
WebSessionManager.getSession(ServerWebExchange exchange)
Return the
WebSession for the given exchange. |
List<String> |
HeaderWebSessionIdResolver.resolveSessionIds(ServerWebExchange exchange) |
List<String> |
CookieWebSessionIdResolver.resolveSessionIds(ServerWebExchange exchange) |
List<String> |
WebSessionIdResolver.resolveSessionIds(ServerWebExchange exchange)
Resolve the session IDs associated with the request.
|
void |
HeaderWebSessionIdResolver.setSessionId(ServerWebExchange exchange,
String id) |
void |
CookieWebSessionIdResolver.setSessionId(ServerWebExchange exchange,
String id) |
void |
WebSessionIdResolver.setSessionId(ServerWebExchange exchange,
String sessionId)
Send the given session ID to the client.
|