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.
|
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. |
Modifier and Type | Class and Description |
---|---|
class |
ForwardedHeaderFilter
Extract values from "Forwarded" and "X-Forwarded-*" headers in order to change
and override
HttpRequest.getURI() . |
class |
HiddenHttpMethodFilter
Reactive
WebFilter that converts posted method parameters into HTTP methods,
retrievable via HttpRequest.getMethod() . |
Modifier and Type | Method and Description |
---|---|
List<WebFilter> |
HandlerStrategies.webFilters()
Return the
WebFilter s 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) |
Constructor and Description |
---|
FilteringWebHandler(WebHandler webHandler,
List<WebFilter> filters)
Constructor.
|