Class StandardApiVersionDeprecationHandler

java.lang.Object
org.springframework.web.accept.StandardApiVersionDeprecationHandler
All Implemented Interfaces:
ApiVersionDeprecationHandler

public class StandardApiVersionDeprecationHandler extends Object implements ApiVersionDeprecationHandler
ApiVersionDeprecationHandler based on RFC 9745 and RFC 8594 that provides the option to set the "Deprecation" and "Sunset" response headers, as well as to add "Link" headers with further details about both.

To use this handler, create an instance, call configureVersion(java.lang.String) for each deprecated version, and use the returned StandardApiVersionDeprecationHandler.VersionSpec to provide the deprecation details to send to clients.

Since:
7.0
Author:
Rossen Stoyanchev