Class QueryApiVersionResolver
java.lang.Object
org.springframework.web.reactive.accept.QueryApiVersionResolver
- All Implemented Interfaces:
ApiVersionResolver
ApiVersionResolver that extracts the version from a query parameter.- Since:
- 7.0
- Author:
- Rossen Stoyanchev
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveVersion(ServerWebExchange exchange) Resolve the version for the given exchange.
-
Constructor Details
-
QueryApiVersionResolver
-
-
Method Details
-
resolveVersion
Description copied from interface:ApiVersionResolverResolve the version for the given exchange.- Specified by:
resolveVersionin interfaceApiVersionResolver- Parameters:
exchange- the current exchange- Returns:
- the version value, or
nullif not found
-