Uses of Interface
org.springframework.web.accept.ApiVersionStrategy
Packages that use ApiVersionStrategy
Package
Description
Support for testing Spring MVC applications via
RestTestClient with
MockMvc for server request handling.Contains built-in
MockMvcBuilder implementations.This package contains classes used to determine the requested the media types in a request.
Annotation-based setup for Spring MVC.
Provides the types that make up Spring's functional web framework for Servlet environments.
Provides standard HandlerMapping implementations,
including abstract base classes for custom implementations.
Common MVC logic for matching incoming requests based on conditions.
Servlet-based infrastructure for handler method processing,
building on the
org.springframework.web.method package.-
Uses of ApiVersionStrategy in org.springframework.test.web.servlet.client
Methods in org.springframework.test.web.servlet.client with parameters of type ApiVersionStrategyModifier and TypeMethodDescriptionMockMvcWebTestClient.ControllerSpec.apiVersionStrategy(ApiVersionStrategy versionStrategy) Set theApiVersionStrategyto use when mapping requests. -
Uses of ApiVersionStrategy in org.springframework.test.web.servlet.setup
Methods in org.springframework.test.web.servlet.setup with parameters of type ApiVersionStrategyModifier and TypeMethodDescriptionStandaloneMockMvcBuilder.setApiVersionStrategy(@Nullable ApiVersionStrategy versionStrategy) Set theApiVersionStrategyto use when mapping requests. -
Uses of ApiVersionStrategy in org.springframework.web.accept
Classes in org.springframework.web.accept that implement ApiVersionStrategyModifier and TypeClassDescriptionclassDefault implementation ofApiVersionStrategythat delegates to the configured version resolvers, version parser, and deprecation handler. -
Uses of ApiVersionStrategy in org.springframework.web.servlet.config.annotation
Methods in org.springframework.web.servlet.config.annotation that return ApiVersionStrategyModifier and TypeMethodDescriptionprotected @Nullable ApiVersionStrategyApiVersionConfigurer.getApiVersionStrategy()WebMvcConfigurationSupport.mvcApiVersionStrategy()Return the central strategy to manage API versioning with, ornullif the application does not use versioning.Methods in org.springframework.web.servlet.config.annotation with parameters of type ApiVersionStrategyModifier and TypeMethodDescriptionWebMvcConfigurationSupport.requestMappingHandlerMapping(ContentNegotiationManager contentNegotiationManager, @Nullable ApiVersionStrategy apiVersionStrategy, FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider) Return aRequestMappingHandlerMappingordered at 0 for mapping requests to annotated controllers.WebMvcConfigurationSupport.routerFunctionMapping(FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider, @Nullable ApiVersionStrategy versionStrategy) Return aRouterFunctionMappingordered at -1 to map router functions. -
Uses of ApiVersionStrategy in org.springframework.web.servlet.function
Methods in org.springframework.web.servlet.function that return ApiVersionStrategyModifier and TypeMethodDescriptionServerRequest.apiVersionStrategy()Return the configuredApiVersionStrategy, ornull.Methods in org.springframework.web.servlet.function with parameters of type ApiVersionStrategyModifier and TypeMethodDescriptionstatic ServerRequestServerRequest.create(jakarta.servlet.http.HttpServletRequest servletRequest, List<HttpMessageConverter<?>> messageReaders, @Nullable ApiVersionStrategy versionStrategy) Create a newServerRequestbased on the givenHttpServletRequestand message converters. -
Uses of ApiVersionStrategy in org.springframework.web.servlet.handler
Methods in org.springframework.web.servlet.handler that return ApiVersionStrategyModifier and TypeMethodDescriptionAbstractHandlerMapping.getApiVersionStrategy()Return the configuredApiVersionStrategystrategy.Methods in org.springframework.web.servlet.handler with parameters of type ApiVersionStrategyModifier and TypeMethodDescriptionvoidAbstractHandlerMapping.setApiVersionStrategy(@Nullable ApiVersionStrategy strategy) Configure a strategy to manage API versioning. -
Uses of ApiVersionStrategy in org.springframework.web.servlet.mvc.condition
Constructors in org.springframework.web.servlet.mvc.condition with parameters of type ApiVersionStrategyModifierConstructorDescriptionVersionRequestCondition(@Nullable String version, @Nullable ApiVersionStrategy strategy) Constructor with the version, if set on the@RequestMapping, and theApiVersionStrategy, if API versioning is enabled. -
Uses of ApiVersionStrategy in org.springframework.web.servlet.mvc.method
Methods in org.springframework.web.servlet.mvc.method that return ApiVersionStrategyModifier and TypeMethodDescriptionRequestMappingInfo.BuilderConfiguration.getApiVersionStrategy()Return the configured strategy for API versioning.Methods in org.springframework.web.servlet.mvc.method with parameters of type ApiVersionStrategyModifier and TypeMethodDescriptionvoidRequestMappingInfo.BuilderConfiguration.setApiVersionStrategy(@Nullable ApiVersionStrategy apiVersionStrategy) Set the strategy for API versioning.