クラスの使用
org.springframework.web.accept.ContentNegotiationManager
ContentNegotiationManager を使用するパッケージ
パッケージ
説明
ビルトイン
MockMvcBuilder 実装が含まれています。 このパッケージには、リクエストでリクエストされたメディア型を判別するために使用されるクラスが含まれています。
Spring MVC のアノテーションベースのセットアップ。
条件に基づいて受信リクエストを照合するための一般的な MVC ロジック。
org.springframework.web.method パッケージに基づいた、ハンドラーメソッド処理用のサーブレットベースのインフラストラクチャ。org.springframework.web.method.annotation パッケージに基づいた、アノテーションベースのハンドラーメソッド処理のための MVC インフラストラクチャ。 静的リソースを提供するためのサポートクラス。
カスタム実装の抽象基本クラスを含む、標準の View および ViewResolver 実装を提供します。
org.springframework.test.web.servlet.client 内の ContentNegotiationManager 使用
型 ContentNegotiationManager のパラメーターを持つ org.springframework.test.web.servlet.client のメソッド修飾子と型メソッド説明MockMvcWebTestClient.ControllerSpec.contentNegotiationManager(ContentNegotiationManager manager) ContentNegotiationManager を設定します。org.springframework.test.web.servlet.setup 内の ContentNegotiationManager 使用
型 ContentNegotiationManager のパラメーターを持つ org.springframework.test.web.servlet.setup のメソッド修飾子と型メソッド説明StandaloneMockMvcBuilder.setContentNegotiationManager(ContentNegotiationManager manager) ContentNegotiationManager を設定します。org.springframework.web.accept 内の ContentNegotiationManager 使用
修飾子と型メソッド説明ContentNegotiationManagerFactoryBean.build()ContentNegotiationManagerインスタンスを作成して初期化します。ContentNegotiationManagerFactoryBean.getObject()org.springframework.web.servlet.config.annotation 内の ContentNegotiationManager 使用
修飾子と型メソッド説明protected ContentNegotiationManagerContentNegotiationConfigurer.buildContentNegotiationManager()この設定の設定に基づいてContentNegotiationManagerを構築します。WebMvcConfigurationSupport.mvcContentNegotiationManager()指定されたリクエストでリクエストされたメディア型を判別するために使用するContentNegotiationManagerインスタンスを返します。型 ContentNegotiationManager のパラメーターを持つ org.springframework.web.servlet.config.annotation のメソッド修飾子と型メソッド説明protected final voidWebMvcConfigurationSupport.addDefaultHandlerExceptionResolvers(ListSE<HandlerExceptionResolver> exceptionResolvers, ContentNegotiationManager mvcContentNegotiationManager) デフォルトのHandlerExceptionResolversを追加するためにサブクラスで使用できるメソッド。WebMvcConfigurationSupport.handlerExceptionResolver(ContentNegotiationManager contentNegotiationManager) WebMvcConfigurationSupport.configureHandlerExceptionResolvers(java.util.List<org.springframework.web.servlet.HandlerExceptionResolver>)またはWebMvcConfigurationSupport.addDefaultHandlerExceptionResolvers(java.util.List<org.springframework.web.servlet.HandlerExceptionResolver>, org.springframework.web.accept.ContentNegotiationManager)のいずれかで取得した例外リゾルバーのリストを含むHandlerExceptionResolverCompositeを返します。WebMvcConfigurationSupport.mvcViewResolver(ContentNegotiationManager contentNegotiationManager) ビューの解決に使用するビューリゾルバーのチェーンを含むViewResolverCompositeを登録します。WebMvcConfigurationSupport.requestMappingHandlerAdapter(ContentNegotiationManager contentNegotiationManager, FormattingConversionService conversionService, Validator validator) アノテーション付きコントローラーメソッドを介してリクエストを処理するためのRequestMappingHandlerAdapterを返します。WebMvcConfigurationSupport.requestMappingHandlerMapping(ContentNegotiationManager contentNegotiationManager, FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider) リクエストをアノテーション付きコントローラーにマッピングするために、0 で順序付けされたRequestMappingHandlerMappingを返します。WebMvcConfigurationSupport.resourceHandlerMapping(ContentNegotiationManager contentNegotiationManager, FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider) リソースハンドラーがマップされた Integer.MAX_VALUE-1 で順序付けられたハンドラーマッピングを返します。型 ContentNegotiationManager のパラメーターを持つ org.springframework.web.servlet.config.annotation のコンストラクター修飾子コンストラクター説明ResourceHandlerRegistry(ApplicationContext applicationContext, ServletContextEE servletContext, ContentNegotiationManager contentNegotiationManager) 指定されたアプリケーションコンテキストの新しいリソースハンドラーレジストリを作成します。ResourceHandlerRegistry(ApplicationContext applicationContext, ServletContextEE servletContext, ContentNegotiationManager contentNegotiationManager, UrlPathHelper pathHelper) 静的リソースへのリクエストのマッピングに使用されるUrlPathHelperも受け入れるResourceHandlerRegistry(ApplicationContext, ServletContext, ContentNegotiationManager)のバリアント。ViewResolverRegistry(ContentNegotiationManager contentNegotiationManager, ApplicationContext context) ContentNegotiationManagerおよびApplicationContextのクラスコンストラクター。org.springframework.web.servlet.mvc.condition 内の ContentNegotiationManager 使用
型 ContentNegotiationManager のパラメーターを持つ org.springframework.web.servlet.mvc.condition のコンストラクター修飾子コンストラクター説明ProducesRequestCondition(StringSE[] produces, StringSE[] headers, ContentNegotiationManager manager) org.springframework.web.servlet.mvc.method 内の ContentNegotiationManager 使用
修飾子と型メソッド説明RequestMappingInfo.BuilderConfiguration.getContentNegotiationManager()ProducesRequestCondition に使用する ContentNegotiationManager を返します(ある場合)。型 ContentNegotiationManager のパラメーターを持つ org.springframework.web.servlet.mvc.method のメソッド修飾子と型メソッド説明voidRequestMappingInfo.BuilderConfiguration.setContentNegotiationManager(ContentNegotiationManager contentNegotiationManager) ProducesRequestCondition に使用する ContentNegotiationManager を設定します。org.springframework.web.servlet.mvc.method.annotation 内の ContentNegotiationManager 使用
修飾子と型メソッド説明ExceptionHandlerExceptionResolver.getContentNegotiationManager()設定されたContentNegotiationManagerを返します。RequestMappingHandlerMapping.getContentNegotiationManager()設定されたContentNegotiationManagerを返します。型 ContentNegotiationManager のパラメーターを持つ org.springframework.web.servlet.mvc.method.annotation のメソッド修飾子と型メソッド説明voidExceptionHandlerExceptionResolver.setContentNegotiationManager(ContentNegotiationManager contentNegotiationManager) リクエストされたメディア型を判別するために使用するContentNegotiationManagerを設定します。voidRequestMappingHandlerAdapter.setContentNegotiationManager(ContentNegotiationManager contentNegotiationManager) リクエストされたメディア型を判別するために使用するContentNegotiationManagerを設定します。voidRequestMappingHandlerMapping.setContentNegotiationManager(ContentNegotiationManager contentNegotiationManager) リクエストされたメディア型を判別するために使用するContentNegotiationManagerを設定します。型 ContentNegotiationManager のパラメーターを持つ org.springframework.web.servlet.mvc.method.annotation のコンストラクター修飾子コンストラクター説明protectedAbstractMessageConverterMethodProcessor(ListSE<HttpMessageConverter<?>> converters, ContentNegotiationManager contentNegotiationManager) コンバーターと ContentNegotiationManager のリストを持つコンストラクター。protectedAbstractMessageConverterMethodProcessor(ListSE<HttpMessageConverter<?>> converters, ContentNegotiationManager manager, ListSE<ObjectSE> requestResponseBodyAdvice) コンバーターと ContentNegotiationManager のリスト、およびリクエスト / レスポンス本文アドバイスインスタンスを持つコンストラクター。HttpEntityMethodProcessor(ListSE<HttpMessageConverter<?>> converters, ContentNegotiationManager manager) コンバーターとContentNegotiationManagerを使用した基本コンストラクター。HttpEntityMethodProcessor(ListSE<HttpMessageConverter<?>> converters, ContentNegotiationManager manager, ListSE<ObjectSE> requestResponseBodyAdvice) HttpEntityを解決し、ResponseEntityを処理するための完全なコンストラクター。RequestResponseBodyMethodProcessor(ListSE<HttpMessageConverter<?>> converters, ContentNegotiationManager manager) コンバーターとContentNegotiationManagerを使用した基本コンストラクター。RequestResponseBodyMethodProcessor(ListSE<HttpMessageConverter<?>> converters, ContentNegotiationManager manager, ListSE<ObjectSE> requestResponseBodyAdvice) @RequestBodyを解決し、@ResponseBodyを処理するための完全なコンストラクター。ResponseBodyEmitterReturnValueHandler(ListSE<HttpMessageConverter<?>> messageConverters, ReactiveAdapterRegistry registry, TaskExecutor executor, ContentNegotiationManager manager) プラグイン可能な「リアクティブ」型のサポートを備えた完全なコンストラクター。org.springframework.web.servlet.resource 内の ContentNegotiationManager 使用
型 ContentNegotiationManager のパラメーターを持つ org.springframework.web.servlet.resource のメソッド修飾子と型メソッド説明voidResourceHttpRequestHandler.setContentNegotiationManager(ContentNegotiationManager contentNegotiationManager) 使用すべきではありません。5.2.4 以降、getMediaTypeMappings()から取得したマッピングでResourceHttpRequestHandler.setMediaTypes(Map)を使用することを推奨します。org.springframework.web.servlet.view 内の ContentNegotiationManager 使用
修飾子と型メソッド説明ContentNegotiatingViewResolver.getContentNegotiationManager()リクエストされたメディア型を判別するために使用するContentNegotiationManagerを返します。型 ContentNegotiationManager のパラメーターを持つ org.springframework.web.servlet.view のメソッド修飾子と型メソッド説明voidContentNegotiatingViewResolver.setContentNegotiationManager(ContentNegotiationManager contentNegotiationManager) リクエストされたメディア型を判別するために使用するContentNegotiationManagerを設定します。