インターフェースの使用
org.springframework.web.accept.ApiVersionStrategy
ApiVersionStrategy を使用するパッケージ
パッケージ
説明
ビルトイン
MockMvcBuilder 実装が含まれています。 このパッケージには、リクエストでリクエストされたメディア型を判別するために使用されるクラスが含まれています。
Spring MVC のアノテーションベースのセットアップ。
Spring のサーブレット環境用の関数 Web フレームワークを構成する型を提供します。
カスタム実装の抽象基本クラスを含む、標準の HandlerMapping 実装を提供します。
条件に基づいて受信リクエストを照合するための一般的な MVC ロジック。
org.springframework.web.method パッケージに基づいた、ハンドラーメソッド処理用のサーブレットベースのインフラストラクチャ。org.springframework.test.web.servlet.client 内の ApiVersionStrategy 使用
型 ApiVersionStrategy のパラメーターを持つ org.springframework.test.web.servlet.client のメソッド修飾子と型メソッド説明MockMvcWebTestClient.ControllerSpec.apiVersionStrategy(ApiVersionStrategy versionStrategy) リクエストをマッピングするときに使用するApiVersionStrategyを設定します。org.springframework.test.web.servlet.setup 内の ApiVersionStrategy 使用
型 ApiVersionStrategy のパラメーターを持つ org.springframework.test.web.servlet.setup のメソッド修飾子と型メソッド説明StandaloneMockMvcBuilder.setApiVersionStrategy(@Nullable ApiVersionStrategy versionStrategy) リクエストをマッピングするときに使用するApiVersionStrategyを設定します。org.springframework.web.accept 内の ApiVersionStrategy 使用
ApiVersionStrategy を実装している org.springframework.web.accept のクラスorg.springframework.web.servlet.config.annotation 内の ApiVersionStrategy 使用
修飾子と型メソッド説明protected @Nullable ApiVersionStrategyApiVersionConfigurer.getApiVersionStrategy()WebMvcConfigurationSupport.mvcApiVersionStrategy()API のバージョン管理に使用する中心的な戦略を返します。アプリケーションでバージョン管理を使用しない場合は、nullを返します。型 ApiVersionStrategy のパラメーターを持つ org.springframework.web.servlet.config.annotation のメソッド修飾子と型メソッド説明WebMvcConfigurationSupport.requestMappingHandlerMapping(ContentNegotiationManager contentNegotiationManager, @Nullable ApiVersionStrategy apiVersionStrategy, FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider) リクエストをアノテーション付きコントローラーにマッピングするために、0 で順序付けされたRequestMappingHandlerMappingを返します。WebMvcConfigurationSupport.routerFunctionMapping(FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider, @Nullable ApiVersionStrategy versionStrategy) ルーター関数をマップするために、-1 で順序付けされたRouterFunctionMappingを返します。org.springframework.web.servlet.function 内の ApiVersionStrategy 使用
型 ApiVersionStrategy のパラメーターを持つ org.springframework.web.servlet.function のメソッド修飾子と型メソッド説明static ServerRequestServerRequest.create(jakarta.servlet.http.HttpServletRequest servletRequest, ListSE<HttpMessageConverter<?>> messageReaders, @Nullable ApiVersionStrategy versionStrategy) 指定されたHttpServletRequestおよびメッセージコンバーターに基づいて新しいServerRequestを作成します。org.springframework.web.servlet.handler 内の ApiVersionStrategy 使用
型 ApiVersionStrategy のパラメーターを持つ org.springframework.web.servlet.handler のメソッド修飾子と型メソッド説明voidAbstractHandlerMapping.setApiVersionStrategy(@Nullable ApiVersionStrategy strategy) API のバージョン管理を管理するための戦略を構成します。org.springframework.web.servlet.mvc.condition 内の ApiVersionStrategy 使用
型 ApiVersionStrategy のパラメーターを持つ org.springframework.web.servlet.mvc.condition のコンストラクター修飾子コンストラクター説明VersionRequestCondition(@Nullable StringSE version, @Nullable ApiVersionStrategy strategy) @RequestMappingに設定されている場合はバージョンを持つコンストラクター。API バージョン管理が有効な場合はApiVersionStrategyにバージョンを持つコンストラクター。org.springframework.web.servlet.mvc.method 内の ApiVersionStrategy 使用
修飾子と型メソッド説明RequestMappingInfo.BuilderConfiguration.getApiVersionStrategy()API バージョン管理用に構成された戦略を返します。型 ApiVersionStrategy のパラメーターを持つ org.springframework.web.servlet.mvc.method のメソッド修飾子と型メソッド説明voidRequestMappingInfo.BuilderConfiguration.setApiVersionStrategy(@Nullable ApiVersionStrategy apiVersionStrategy) API バージョン管理の戦略を設定します。