クラスの使用
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 ContentNegotiationManager
ContentNegotiationConfigurer.buildContentNegotiationManager()
この設定の設定に基づいてContentNegotiationManager
を構築します。WebMvcConfigurationSupport.mvcContentNegotiationManager()
指定されたリクエストでリクエストされたメディア型を判別するために使用するContentNegotiationManager
インスタンスを返します。型 ContentNegotiationManager のパラメーターを持つ org.springframework.web.servlet.config.annotation のメソッド修飾子と型メソッド説明protected final void
WebMvcConfigurationSupport.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 のメソッド修飾子と型メソッド説明void
RequestMappingInfo.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 のメソッド修飾子と型メソッド説明void
ExceptionHandlerExceptionResolver.setContentNegotiationManager
(ContentNegotiationManager contentNegotiationManager) リクエストされたメディア型を判別するために使用するContentNegotiationManager
を設定します。void
RequestMappingHandlerAdapter.setContentNegotiationManager
(ContentNegotiationManager contentNegotiationManager) リクエストされたメディア型を判別するために使用するContentNegotiationManager
を設定します。void
RequestMappingHandlerMapping.setContentNegotiationManager
(ContentNegotiationManager contentNegotiationManager) リクエストされたメディア型を判別するために使用するContentNegotiationManager
を設定します。型 ContentNegotiationManager のパラメーターを持つ org.springframework.web.servlet.mvc.method.annotation のコンストラクター修飾子コンストラクター説明protected
AbstractMessageConverterMethodProcessor
(ListSE<HttpMessageConverter<?>> converters, ContentNegotiationManager contentNegotiationManager) コンバーターと ContentNegotiationManager のリストを持つコンストラクター。protected
AbstractMessageConverterMethodProcessor
(ListSE<HttpMessageConverter<?>> converters, ContentNegotiationManager manager, ListSE<ObjectSE> requestResponseBodyAdvice) 戻り値の処理用にContentNegotiationManager
を追加したAbstractMessageConverterMethodProcessor(List)
のバリアント。protected
AbstractMessageConverterMethodProcessor
(ListSE<HttpMessageConverter<?>> converters, ContentNegotiationManager manager, ListSE<ObjectSE> requestResponseBodyAdvice, ListSE<ErrorResponse.Interceptor> interceptors) 戻り値の処理用にErrorResponse.Interceptor
のリストを追加したAbstractMessageConverterMethodProcessor(List, ContentNegotiationManager, List)
のバリアント。HttpEntityMethodProcessor
(ListSE<HttpMessageConverter<?>> converters, ContentNegotiationManager manager) コンバーターとContentNegotiationManager
を使用した基本コンストラクター。HttpEntityMethodProcessor
(ListSE<HttpMessageConverter<?>> converters, ContentNegotiationManager manager, ListSE<ObjectSE> requestResponseBodyAdvice) 戻り値の処理用にContentNegotiationManager
引数を追加したHttpEntityMethodProcessor(List, List)
のバリアント。HttpEntityMethodProcessor
(ListSE<HttpMessageConverter<?>> converters, ContentNegotiationManager manager, ListSE<ObjectSE> requestResponseBodyAdvice, ListSE<ErrorResponse.Interceptor> interceptors) 戻り値の処理用にErrorResponse.Interceptor
のリストを追加したHttpEntityMethodProcessor(List, ContentNegotiationManager, List)
のバリアント。RequestResponseBodyMethodProcessor
(ListSE<HttpMessageConverter<?>> converters, ContentNegotiationManager manager) コンバーターとContentNegotiationManager
を使用した基本コンストラクター。RequestResponseBodyMethodProcessor
(ListSE<HttpMessageConverter<?>> converters, ContentNegotiationManager manager, ListSE<ObjectSE> requestResponseBodyAdvice) 戻り値の処理用に、追加のContentNegotiationManager
引数を持つRequestResponseBodyMethodProcessor(List, List)
のバリアント。RequestResponseBodyMethodProcessor
(ListSE<HttpMessageConverter<?>> converters, ContentNegotiationManager manager, ListSE<ObjectSE> requestResponseBodyAdvice, ListSE<ErrorResponse.Interceptor> interceptors) 戻り値の処理用にErrorResponse.Interceptor
引数を追加したRequestResponseBodyMethodProcessor(List, ContentNegotiationManager, List)
のバリアント。ResponseBodyEmitterReturnValueHandler
(ListSE<HttpMessageConverter<?>> messageConverters, ReactiveAdapterRegistry registry, TaskExecutor executor, ContentNegotiationManager manager) 「リアクティブ」型のサポートをカスタマイズするための引数が追加されたコンストラクター。ResponseBodyEmitterReturnValueHandler
(ListSE<HttpMessageConverter<?>> messageConverters, ReactiveAdapterRegistry registry, TaskExecutor executor, ContentNegotiationManager manager, ListSE<ViewResolver> viewResolvers, LocaleResolver localeResolver) ビューのレンダリング用の引数が追加されたコンストラクター。org.springframework.web.servlet.resource 内の ContentNegotiationManager 使用
型 ContentNegotiationManager のパラメーターを持つ org.springframework.web.servlet.resource のメソッド修飾子と型メソッド説明void
ResourceHttpRequestHandler.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 のメソッド修飾子と型メソッド説明void
ContentNegotiatingViewResolver.setContentNegotiationManager
(ContentNegotiationManager contentNegotiationManager) リクエストされたメディア型を判別するために使用するContentNegotiationManager
を設定します。