Interface ApiVersionResolver

All Known Implementing Classes:
HeaderApiVersionResolver, MediaTypeParamApiVersionResolver, PathApiVersionResolver, QueryApiVersionResolver
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ApiVersionResolver
Contract to extract the version from a request.
Since:
7.0
Author:
Rossen Stoyanchev
  • Method Summary

    Modifier and Type
    Method
    Description
    resolveVersion(org.springframework.web.server.ServerWebExchange exchange)
    Resolve the version for the given exchange.
  • Method Details

    • resolveVersion

      @Nullable String resolveVersion(org.springframework.web.server.ServerWebExchange exchange)
      Resolve the version for the given exchange.
      Parameters:
      exchange - the current exchange
      Returns:
      the version value, or null if not found