Uses of Class
org.springframework.web.accept.StandardApiVersionDeprecationHandler.VersionSpec
Packages that use StandardApiVersionDeprecationHandler.VersionSpec
Package
Description
This package contains classes used to determine the requested the media types in a request.
-
Uses of StandardApiVersionDeprecationHandler.VersionSpec in org.springframework.web.accept
Methods in org.springframework.web.accept that return StandardApiVersionDeprecationHandler.VersionSpecModifier and TypeMethodDescriptionStandardApiVersionDeprecationHandler.configureVersion
(String version) Mark the given API version as deprecated, and use the returnedStandardApiVersionDeprecationHandler.VersionSpec
to configure the deprecation details to send to clients.StandardApiVersionDeprecationHandler.VersionSpec.setDeprecationDate
(ZonedDateTime date) Specify a deprecation date for the "Deprecation" response header.StandardApiVersionDeprecationHandler.VersionSpec.setDeprecationLink
(URI uri) Specify a URL for the "Link" response header withrel="deprecation"
andtype="text/html"
.StandardApiVersionDeprecationHandler.VersionSpec.setDeprecationLink
(URI uri, MediaType mediaType) Variation ofsetDeprecationLink(URI)
for use with a media type other than "text/html".StandardApiVersionDeprecationHandler.VersionSpec.setRequestPredicate
(Predicate<HttpServletRequest> predicate) Set a predicate to filter which requests to send deprecation info to.StandardApiVersionDeprecationHandler.VersionSpec.setSunsetDate
(ZonedDateTime date) Specify a deprecation date for the "Sunset" response header.StandardApiVersionDeprecationHandler.VersionSpec.setSunsetLink
(URI uri) Specify a URL for the "Link" response header withrel="sunset"
andtype="text/html"
.StandardApiVersionDeprecationHandler.VersionSpec.setSunsetLink
(URI uri, MediaType mediaType) Variation ofsetSunsetLink(URI)
for use with a media type other than "text/html".