public class ApiVersionWebFilter
extends java.lang.Object
implements org.springframework.web.server.WebFilter
WebFilter
that configures checking for an appropriate service broker API version.Constructor and Description |
---|
ApiVersionWebFilter()
Construct 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.
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<java.lang.Void> |
filter(org.springframework.web.server.ServerWebExchange exchange,
org.springframework.web.server.WebFilterChain chain)
Process the web request and validate the API version in the header.
|
public ApiVersionWebFilter()
public ApiVersionWebFilter(BrokerApiVersion version)
version
- the API version supported by the broker.public reactor.core.publisher.Mono<java.lang.Void> filter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain)
filter
in interface org.springframework.web.server.WebFilter
exchange
- chain
-