Class MediaTypeParamApiVersionResolver

java.lang.Object
org.springframework.web.reactive.accept.MediaTypeParamApiVersionResolver
All Implemented Interfaces:
ApiVersionResolver

public class MediaTypeParamApiVersionResolver extends Object implements ApiVersionResolver
ApiVersionResolver that extracts the version from a media type parameter found in the Accept or Content-Type headers.
Since:
7.0
Author:
Rossen Stoyanchev
  • Constructor Details

    • MediaTypeParamApiVersionResolver

      public MediaTypeParamApiVersionResolver(MediaType compatibleMediaType, String paramName)
      Create an instance.
      Parameters:
      compatibleMediaType - the media type to extract the parameter from with the match established via MediaType.isCompatibleWith(MediaType)
      paramName - the name of the parameter
  • Method Details