Package | Description |
---|---|
org.springframework.test.web.reactive.server |
Support for testing Spring WebFlux server endpoints via
WebTestClient . |
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.reactive.function.server |
Provides the types that make up Spring's functional web framework for Reactive environments.
|
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 . |
Modifier and Type | Method and Description |
---|---|
<T extends B> |
WebTestClient.MockServerSpec.webFilter(WebFilter... filter)
Register
WebFilter instances to add to the mock server. |
Modifier and Type | Class and Description |
---|---|
class |
CorsWebFilter
WebFilter that handles CORS preflight requests and intercepts
CORS simple and actual requests thanks to a CorsProcessor implementation
(DefaultCorsProcessor by default) in order to add the relevant CORS
response headers (like Access-Control-Allow-Origin ) using the provided
CorsConfigurationSource (for example an UrlBasedCorsConfigurationSource
instance. |
class |
PreFlightRequestWebFilter
WebFilter that handles pre-flight requests through a
PreFlightRequestHandler and bypasses the rest of the chain. |
Modifier and Type | Class and Description |
---|---|
class |
ForwardedHeaderFilter
Deprecated.
as of 5.1 this filter is deprecated in favor of using
ForwardedHeaderTransformer which can be declared as a bean with the
name "forwardedHeaderTransformer" or registered explicitly in
WebHttpHandlerBuilder . |
class |
HiddenHttpMethodFilter
Reactive
WebFilter that converts posted method parameters into HTTP methods,
retrievable via HttpRequest.getMethod() . |
class |
ServerWebExchangeContextFilter
Inserts an attribute in the Reactor
Context that makes the current
ServerWebExchange available under the attribute name
ServerWebExchangeContextFilter.EXCHANGE_CONTEXT_ATTRIBUTE . |
Modifier and Type | Method and Description |
---|---|
List<WebFilter> |
HandlerStrategies.webFilters()
Return the
WebFilters to be used for filtering the request and response. |
Modifier and Type | Method and Description |
---|---|
HandlerStrategies.Builder |
HandlerStrategies.Builder.webFilter(WebFilter filter)
Add the given web filter to this builder.
|
Modifier and Type | Method and Description |
---|---|
WebHttpHandlerBuilder |
WebHttpHandlerBuilder.filter(WebFilter... filters)
Add the given filter(s).
|
Modifier and Type | Method and Description |
---|---|
WebHttpHandlerBuilder |
WebHttpHandlerBuilder.filters(Consumer<List<WebFilter>> consumer)
Manipulate the "live" list of currently configured filters.
|
Modifier and Type | Method and Description |
---|---|
List<WebFilter> |
DefaultWebFilterChain.getFilters() |
List<WebFilter> |
FilteringWebHandler.getFilters()
Return a read-only list of the configured filters.
|
Constructor and Description |
---|
DefaultWebFilterChain(WebHandler handler,
WebFilter... filters)
Deprecated.
as of 5.1 this constructor is deprecated in favor of
DefaultWebFilterChain(WebHandler, List) . |
Constructor and Description |
---|
DefaultWebFilterChain(WebHandler handler,
List<WebFilter> filters)
Public constructor with the list of filters and the target handler to use.
|
FilteringWebHandler(WebHandler handler,
List<WebFilter> filters)
Constructor.
|