Package | Description |
---|---|
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.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 | 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
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 |
---|---|
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.
|