Uses of Class
org.springframework.web.accept.ContentNegotiationManager
Packages that use ContentNegotiationManager
Package
Description
Support for testing Spring MVC applications via
WebTestClient
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.
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.MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation
package.Provides standard View and ViewResolver implementations,
including abstract base classes for custom implementations.
-
Uses of ContentNegotiationManager in org.springframework.test.web.servlet.client
Methods in org.springframework.test.web.servlet.client with parameters of type ContentNegotiationManagerModifier and TypeMethodDescriptionMockMvcWebTestClient.ControllerSpec.contentNegotiationManager
(ContentNegotiationManager manager) Set a ContentNegotiationManager. -
Uses of ContentNegotiationManager in org.springframework.test.web.servlet.setup
Methods in org.springframework.test.web.servlet.setup with parameters of type ContentNegotiationManagerModifier and TypeMethodDescriptionStandaloneMockMvcBuilder.setContentNegotiationManager
(ContentNegotiationManager manager) Set a ContentNegotiationManager. -
Uses of ContentNegotiationManager in org.springframework.web.accept
Classes in org.springframework.web.accept that implement interfaces with type arguments of type ContentNegotiationManagerModifier and TypeClassDescriptionclass
Factory to create aContentNegotiationManager
and configure it withContentNegotiationStrategy
instances.Methods in org.springframework.web.accept that return ContentNegotiationManagerModifier and TypeMethodDescriptionContentNegotiationManagerFactoryBean.build()
Create and initialize aContentNegotiationManager
instance.ContentNegotiationManagerFactoryBean.getObject()
-
Uses of ContentNegotiationManager in org.springframework.web.servlet.config.annotation
Methods in org.springframework.web.servlet.config.annotation that return ContentNegotiationManagerModifier and TypeMethodDescriptionprotected ContentNegotiationManager
ContentNegotiationConfigurer.buildContentNegotiationManager()
Build aContentNegotiationManager
based on this configurer's settings.WebMvcConfigurationSupport.mvcContentNegotiationManager()
Return aContentNegotiationManager
instance to use to determine requested media types in a given request.Methods in org.springframework.web.servlet.config.annotation with parameters of type ContentNegotiationManagerModifier and TypeMethodDescriptionprotected final void
WebMvcConfigurationSupport.addDefaultHandlerExceptionResolvers
(List<HandlerExceptionResolver> exceptionResolvers, ContentNegotiationManager mvcContentNegotiationManager) A method available to subclasses for adding defaultHandlerExceptionResolvers
.WebMvcConfigurationSupport.handlerExceptionResolver
(ContentNegotiationManager contentNegotiationManager) Returns aHandlerExceptionResolverComposite
containing a list of exception resolvers obtained either throughWebMvcConfigurationSupport.configureHandlerExceptionResolvers(java.util.List<org.springframework.web.servlet.HandlerExceptionResolver>)
or throughWebMvcConfigurationSupport.addDefaultHandlerExceptionResolvers(java.util.List<org.springframework.web.servlet.HandlerExceptionResolver>, org.springframework.web.accept.ContentNegotiationManager)
.WebMvcConfigurationSupport.mvcViewResolver
(ContentNegotiationManager contentNegotiationManager) Register aViewResolverComposite
that contains a chain of view resolvers to use for view resolution.WebMvcConfigurationSupport.requestMappingHandlerAdapter
(ContentNegotiationManager contentNegotiationManager, FormattingConversionService conversionService, Validator validator) Returns aRequestMappingHandlerAdapter
for processing requests through annotated controller methods.WebMvcConfigurationSupport.requestMappingHandlerMapping
(ContentNegotiationManager contentNegotiationManager, @Nullable ApiVersionStrategy apiVersionStrategy, FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider) Return aRequestMappingHandlerMapping
ordered at 0 for mapping requests to annotated controllers.WebMvcConfigurationSupport.resourceHandlerMapping
(ContentNegotiationManager contentNegotiationManager, FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider) Return a handler mapping ordered at Integer.MAX_VALUE-1 with mapped resource handlers.Constructors in org.springframework.web.servlet.config.annotation with parameters of type ContentNegotiationManagerModifierConstructorDescriptionResourceHandlerRegistry
(ApplicationContext applicationContext, ServletContext servletContext, @Nullable ContentNegotiationManager contentNegotiationManager) Create a new resource handler registry for the given application context.ResourceHandlerRegistry
(ApplicationContext applicationContext, ServletContext servletContext, @Nullable ContentNegotiationManager contentNegotiationManager, @Nullable UrlPathHelper pathHelper) Deprecated, for removal: This API element is subject to removal in a future version.ViewResolverRegistry
(ContentNegotiationManager contentNegotiationManager, @Nullable ApplicationContext context) Class constructor withContentNegotiationManager
andApplicationContext
. -
Uses of ContentNegotiationManager in org.springframework.web.servlet.mvc.condition
Constructors in org.springframework.web.servlet.mvc.condition with parameters of type ContentNegotiationManagerModifierConstructorDescriptionProducesRequestCondition
(String @Nullable [] produces, String @Nullable [] headers, @Nullable ContentNegotiationManager manager) Same asProducesRequestCondition(String[], String[])
but also accepting aContentNegotiationManager
. -
Uses of ContentNegotiationManager in org.springframework.web.servlet.mvc.method
Methods in org.springframework.web.servlet.mvc.method that return ContentNegotiationManagerModifier and TypeMethodDescriptionRequestMappingInfo.BuilderConfiguration.getContentNegotiationManager()
Return the ContentNegotiationManager to use for the ProducesRequestCondition, if any.Methods in org.springframework.web.servlet.mvc.method with parameters of type ContentNegotiationManagerModifier and TypeMethodDescriptionvoid
RequestMappingInfo.BuilderConfiguration.setContentNegotiationManager
(ContentNegotiationManager contentNegotiationManager) Set the ContentNegotiationManager to use for the ProducesRequestCondition. -
Uses of ContentNegotiationManager in org.springframework.web.servlet.mvc.method.annotation
Methods in org.springframework.web.servlet.mvc.method.annotation that return ContentNegotiationManagerModifier and TypeMethodDescriptionExceptionHandlerExceptionResolver.getContentNegotiationManager()
Return the configuredContentNegotiationManager
.RequestMappingHandlerMapping.getContentNegotiationManager()
Return the configuredContentNegotiationManager
.Methods in org.springframework.web.servlet.mvc.method.annotation with parameters of type ContentNegotiationManagerModifier and TypeMethodDescriptionvoid
ExceptionHandlerExceptionResolver.setContentNegotiationManager
(ContentNegotiationManager contentNegotiationManager) Set theContentNegotiationManager
to use to determine requested media types.void
RequestMappingHandlerAdapter.setContentNegotiationManager
(ContentNegotiationManager contentNegotiationManager) Set theContentNegotiationManager
to use to determine requested media types.void
RequestMappingHandlerMapping.setContentNegotiationManager
(ContentNegotiationManager contentNegotiationManager) Set theContentNegotiationManager
to use to determine requested media types.Constructors in org.springframework.web.servlet.mvc.method.annotation with parameters of type ContentNegotiationManagerModifierConstructorDescriptionprotected
AbstractMessageConverterMethodProcessor
(List<HttpMessageConverter<?>> converters, @Nullable ContentNegotiationManager contentNegotiationManager) Construct with the provided list of converters andContentNegotiationManager
.protected
AbstractMessageConverterMethodProcessor
(List<HttpMessageConverter<?>> converters, @Nullable ContentNegotiationManager manager, @Nullable List<Object> requestResponseBodyAdvice) Variant ofAbstractMessageConverterMethodProcessor(List, ContentNegotiationManager)
with an additionalrequestResponseBodyAdvice
list for return value handling.protected
AbstractMessageConverterMethodProcessor
(List<HttpMessageConverter<?>> converters, @Nullable ContentNegotiationManager manager, @Nullable List<Object> requestResponseBodyAdvice, List<ErrorResponse.Interceptor> interceptors) Variant ofAbstractMessageConverterMethodProcessor(List, ContentNegotiationManager, List)
with additional list ofErrorResponse.Interceptor
s for return value handling.HttpEntityMethodProcessor
(List<HttpMessageConverter<?>> converters, @Nullable ContentNegotiationManager manager, List<Object> requestResponseBodyAdvice) Variant ofHttpEntityMethodProcessor(List, List)
with an additionalContentNegotiationManager
argument for return value handling.HttpEntityMethodProcessor
(List<HttpMessageConverter<?>> converters, @Nullable ContentNegotiationManager manager, List<Object> requestResponseBodyAdvice, List<ErrorResponse.Interceptor> interceptors) Variant ofHttpEntityMethodProcessor(List, ContentNegotiationManager, List)
with additional list ofErrorResponse.Interceptor
s for return value handling.HttpEntityMethodProcessor
(List<HttpMessageConverter<?>> converters, ContentNegotiationManager manager) Basic constructor with converters andContentNegotiationManager
.RequestResponseBodyMethodProcessor
(List<HttpMessageConverter<?>> converters, @Nullable ContentNegotiationManager manager) Basic constructor with converters andContentNegotiationManager
.RequestResponseBodyMethodProcessor
(List<HttpMessageConverter<?>> converters, @Nullable ContentNegotiationManager manager, @Nullable List<Object> requestResponseBodyAdvice) Variant ofRequestResponseBodyMethodProcessor(List, List)
with an additionalContentNegotiationManager
argument, for return value handling.RequestResponseBodyMethodProcessor
(List<HttpMessageConverter<?>> converters, @Nullable ContentNegotiationManager manager, List<Object> requestResponseBodyAdvice, List<ErrorResponse.Interceptor> interceptors) Variant ofRequestResponseBodyMethodProcessor(List, ContentNegotiationManager, List)
with an additionalErrorResponse.Interceptor
argument for return value handling.ResponseBodyEmitterReturnValueHandler
(List<HttpMessageConverter<?>> messageConverters, ReactiveAdapterRegistry registry, TaskExecutor executor, ContentNegotiationManager manager) Constructor that with added arguments to customize "reactive" type support.ResponseBodyEmitterReturnValueHandler
(List<HttpMessageConverter<?>> messageConverters, ReactiveAdapterRegistry registry, TaskExecutor executor, ContentNegotiationManager manager, List<ViewResolver> viewResolvers, @Nullable LocaleResolver localeResolver) Constructor that with added arguments for view rendering. -
Uses of ContentNegotiationManager in org.springframework.web.servlet.view
Methods in org.springframework.web.servlet.view that return ContentNegotiationManagerModifier and TypeMethodDescriptionContentNegotiatingViewResolver.getContentNegotiationManager()
Return theContentNegotiationManager
to use to determine requested media types.Methods in org.springframework.web.servlet.view with parameters of type ContentNegotiationManagerModifier and TypeMethodDescriptionvoid
ContentNegotiatingViewResolver.setContentNegotiationManager
(@Nullable ContentNegotiationManager contentNegotiationManager) Set theContentNegotiationManager
to use to determine requested media types.
ResourceHandlerRegistry(ApplicationContext, ServletContext, ContentNegotiationManager)