Package org.springframework.web.accept
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.
Contract to extract the version from a request.
- Since:
- 7.0
- Author:
- Rossen Stoyanchev
-
Method Summary
Modifier and TypeMethodDescriptionresolveVersion
(HttpServletRequest request) Resolve the version for the given request.
-
Method Details
-
resolveVersion
Resolve the version for the given request.- Parameters:
request
- the current request- Returns:
- the version value, or
null
if not found
-