Class ApiVersionWebFilter
java.lang.Object
org.springframework.cloud.servicebroker.autoconfigure.web.reactive.ApiVersionWebFilter
- All Implemented Interfaces:
WebFilter
WebFilter
that configures checking for an appropriate service broker API
version.- Author:
- Roy Clarkson
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a filter that disables API version validation.ApiVersionWebFilter
(BrokerApiVersion version) Construct a filter that validates the API version passed in request headers to the configured version. -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>
filter
(ServerWebExchange exchange, WebFilterChain chain) Process the web request and validate the API version in the header.
-
Constructor Details
-
ApiVersionWebFilter
public ApiVersionWebFilter()Construct a filter that disables API version validation. -
ApiVersionWebFilter
Construct a filter that validates the API version passed in request headers to the configured version.- Parameters:
version
- the API version supported by the broker.
-
-
Method Details