Uses of Class
org.springframework.web.reactive.config.ApiVersionConfigurer
Packages that use ApiVersionConfigurer
Package
Description
Support for testing Spring WebFlux server endpoints via
WebTestClient.Spring WebFlux configuration infrastructure.
-
Uses of ApiVersionConfigurer in org.springframework.test.web.reactive.server
Method parameters in org.springframework.test.web.reactive.server with type arguments of type ApiVersionConfigurerModifier and TypeMethodDescriptionWebTestClient.ControllerSpec.apiVersioning(Consumer<ApiVersionConfigurer> configurer) Configure API versioning for mapping requests to controller methods. -
Uses of ApiVersionConfigurer in org.springframework.web.reactive.config
Methods in org.springframework.web.reactive.config that return ApiVersionConfigurerModifier and TypeMethodDescriptionApiVersionConfigurer.addSupportedVersions(String... versions) Add to the list of supported versions to check against before raisingInvalidApiVersionExceptionfor unknown versions.ApiVersionConfigurer.detectSupportedVersions(boolean detect) Whether to use versions from mappings for supported version validation.ApiVersionConfigurer.setDefaultVersion(@Nullable String defaultVersion) Configure a default version to assign to requests that don't specify one.ApiVersionConfigurer.setDeprecationHandler(ApiVersionDeprecationHandler handler) Configure a handler to add handling for requests with a deprecated API version.ApiVersionConfigurer.setVersionParser(@Nullable ApiVersionParser<?> versionParser) Configure a parser to parse API versions with.ApiVersionConfigurer.setVersionRequired(boolean required) Whether requests are required to have an API version.ApiVersionConfigurer.useMediaTypeParameter(MediaType compatibleMediaType, String paramName) Add resolver to extract the version from a media type parameter found in the Accept or Content-Type headers.ApiVersionConfigurer.usePathSegment(int index) Add a resolver that extracts the API version from a path segment.ApiVersionConfigurer.useQueryParam(String paramName) Add a resolver that extracts the API version from a query string parameter.ApiVersionConfigurer.useRequestHeader(String headerName) Add a resolver that extracts the API version from a request header.ApiVersionConfigurer.useVersionResolver(ApiVersionResolver... resolvers) Add custom resolvers to resolve the API version.Methods in org.springframework.web.reactive.config with parameters of type ApiVersionConfigurerModifier and TypeMethodDescriptionprotected voidDelegatingWebFluxConfiguration.configureApiVersioning(ApiVersionConfigurer configurer) protected voidWebFluxConfigurationSupport.configureApiVersioning(ApiVersionConfigurer configurer) Override this method to configure API versioning.default voidWebFluxConfigurer.configureApiVersioning(ApiVersionConfigurer configurer) Configure API versioning for the application.voidWebFluxConfigurerComposite.configureApiVersioning(ApiVersionConfigurer configurer)