Class ApiVersionHolder

java.lang.Object
org.springframework.web.accept.ApiVersionHolder

public final class ApiVersionHolder extends Object
Simple container of the API version for a request (possibly null), or an exception that resulted from trying to resolve, parse, and validate the version.

While an API version needs to be initialized early, given that each HandlerMapping may or may not expect an API version, it is important to defer raising API version errors until it is known if the HandlerMapping will handle the request.

Since:
7.0
Author:
Rossen Stoyanchev