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<Void> |
filter(ServerWebExchange exchange,
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<Void> filter(ServerWebExchange exchange, WebFilterChain chain)