Package | Description |
---|---|
org.springframework.test.web.servlet.setup |
Contains built-in
MockMvcBuilder implementations. |
org.springframework.web.accept |
This package contains classes used to determine the requested the media types in a request.
|
org.springframework.web.servlet.config.annotation |
Annotation-based setup for Spring MVC.
|
org.springframework.web.servlet.mvc.condition |
Common MVC logic for matching incoming requests based on conditions.
|
org.springframework.web.servlet.mvc.method |
Servlet-based infrastructure for handler method processing,
building on the
org.springframework.web.method package. |
org.springframework.web.servlet.mvc.method.annotation |
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation package. |
org.springframework.web.servlet.resource |
Support classes for serving static resources.
|
org.springframework.web.servlet.view |
Provides standard View and ViewResolver implementations,
including abstract base classes for custom implementations.
|
Modifier and Type | Method and Description |
---|---|
StandaloneMockMvcBuilder |
StandaloneMockMvcBuilder.setContentNegotiationManager(ContentNegotiationManager manager)
Set a ContentNegotiationManager.
|
Modifier and Type | Method and Description |
---|---|
ContentNegotiationManager |
ContentNegotiationManagerFactoryBean.build()
Actually build the
ContentNegotiationManager . |
ContentNegotiationManager |
ContentNegotiationManagerFactoryBean.getObject() |
Modifier and Type | Method and Description |
---|---|
protected ContentNegotiationManager |
ContentNegotiationConfigurer.buildContentNegotiationManager()
Build a
ContentNegotiationManager based on this configurer's settings. |
ContentNegotiationManager |
WebMvcConfigurationSupport.mvcContentNegotiationManager()
Return a
ContentNegotiationManager instance to use to determine
requested media types in a given request. |
Constructor and Description |
---|
ResourceHandlerRegistry(ApplicationContext applicationContext,
ServletContext servletContext,
ContentNegotiationManager contentNegotiationManager)
Create a new resource handler registry for the given application context.
|
ResourceHandlerRegistry(ApplicationContext applicationContext,
ServletContext servletContext,
ContentNegotiationManager contentNegotiationManager,
UrlPathHelper pathHelper)
A variant of
ResourceHandlerRegistry.ResourceHandlerRegistry(ApplicationContext, ServletContext, ContentNegotiationManager)
that also accepts the UrlPathHelper used for mapping requests to static resources. |
ViewResolverRegistry(ContentNegotiationManager contentNegotiationManager,
ApplicationContext context)
Class constructor with
ContentNegotiationManager and ApplicationContext . |
Constructor and Description |
---|
ProducesRequestCondition(java.lang.String[] produces,
java.lang.String[] headers,
ContentNegotiationManager manager)
Same as
ProducesRequestCondition.ProducesRequestCondition(String[], String[]) but also
accepting a ContentNegotiationManager . |
Modifier and Type | Method and Description |
---|---|
ContentNegotiationManager |
RequestMappingInfo.BuilderConfiguration.getContentNegotiationManager()
Return the ContentNegotiationManager to use for the ProducesRequestCondition,
if any.
|
Modifier and Type | Method and Description |
---|---|
void |
RequestMappingInfo.BuilderConfiguration.setContentNegotiationManager(ContentNegotiationManager contentNegotiationManager)
Set the ContentNegotiationManager to use for the ProducesRequestCondition.
|
Modifier and Type | Method and Description |
---|---|
ContentNegotiationManager |
ExceptionHandlerExceptionResolver.getContentNegotiationManager()
Return the configured
ContentNegotiationManager . |
ContentNegotiationManager |
RequestMappingHandlerMapping.getContentNegotiationManager()
Return the configured
ContentNegotiationManager . |
Modifier and Type | Method and Description |
---|---|
void |
ExceptionHandlerExceptionResolver.setContentNegotiationManager(ContentNegotiationManager contentNegotiationManager)
Set the
ContentNegotiationManager to use to determine requested media types. |
void |
RequestMappingHandlerMapping.setContentNegotiationManager(ContentNegotiationManager contentNegotiationManager)
Set the
ContentNegotiationManager to use to determine requested media types. |
void |
RequestMappingHandlerAdapter.setContentNegotiationManager(ContentNegotiationManager contentNegotiationManager)
Set the
ContentNegotiationManager to use to determine requested media types. |
Constructor and Description |
---|
AbstractMessageConverterMethodProcessor(java.util.List<HttpMessageConverter<?>> converters,
ContentNegotiationManager contentNegotiationManager)
Constructor with list of converters and ContentNegotiationManager.
|
AbstractMessageConverterMethodProcessor(java.util.List<HttpMessageConverter<?>> converters,
ContentNegotiationManager manager,
java.util.List<java.lang.Object> requestResponseBodyAdvice)
Constructor with list of converters and ContentNegotiationManager as well
as request/response body advice instances.
|
HttpEntityMethodProcessor(java.util.List<HttpMessageConverter<?>> converters,
ContentNegotiationManager manager)
Basic constructor with converters and
ContentNegotiationManager . |
HttpEntityMethodProcessor(java.util.List<HttpMessageConverter<?>> converters,
ContentNegotiationManager manager,
java.util.List<java.lang.Object> requestResponseBodyAdvice)
Complete constructor for resolving
HttpEntity and handling
ResponseEntity . |
RequestResponseBodyMethodProcessor(java.util.List<HttpMessageConverter<?>> converters,
ContentNegotiationManager manager)
Basic constructor with converters and
ContentNegotiationManager . |
RequestResponseBodyMethodProcessor(java.util.List<HttpMessageConverter<?>> converters,
ContentNegotiationManager manager,
java.util.List<java.lang.Object> requestResponseBodyAdvice)
Complete constructor for resolving
@RequestBody and handling
@ResponseBody . |
ResponseBodyEmitterReturnValueHandler(java.util.List<HttpMessageConverter<?>> messageConverters,
ReactiveAdapterRegistry reactiveRegistry,
TaskExecutor executor,
ContentNegotiationManager manager)
Complete constructor with pluggable "reactive" type support.
|
Modifier and Type | Method and Description |
---|---|
ContentNegotiationManager |
ResourceHttpRequestHandler.getContentNegotiationManager()
Return the configured content negotiation manager.
|
Modifier and Type | Method and Description |
---|---|
void |
ResourceHttpRequestHandler.setContentNegotiationManager(ContentNegotiationManager contentNegotiationManager)
Configure a
ContentNegotiationManager to help determine the
media types for resources being served. |
Modifier and Type | Method and Description |
---|---|
ContentNegotiationManager |
ContentNegotiatingViewResolver.getContentNegotiationManager()
Return the
ContentNegotiationManager to use to determine requested media types. |
Modifier and Type | Method and Description |
---|---|
void |
ContentNegotiatingViewResolver.setContentNegotiationManager(ContentNegotiationManager contentNegotiationManager)
Set the
ContentNegotiationManager to use to determine requested media types. |