Interface ApiVersionResolver

All Known Implementing Classes:
PathApiVersionResolver
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 Details

    • resolveVersion

      @Nullable String resolveVersion(HttpServletRequest request)
      Resolve the version for the given request.
      Parameters:
      request - the current request
      Returns:
      the version value, or null if not found