Package | Description |
---|---|
org.springframework.web.servlet.config.annotation |
Annotation-based setup for Spring MVC.
|
Modifier and Type | Method and Description |
---|---|
ContentNegotiationConfigurer |
ContentNegotiationConfigurer.defaultContentType(MediaType defaultContentType)
Set the default content type.
|
ContentNegotiationConfigurer |
ContentNegotiationConfigurer.favorParameter(boolean favorParameter)
Indicate whether a request parameter should be used to determine the
requested media type with the 2nd highest priority, i.e.
|
ContentNegotiationConfigurer |
ContentNegotiationConfigurer.favorPathExtension(boolean favorPathExtension)
Indicate whether the extension of the request path should be used to determine
the requested media type with the highest priority.
|
ContentNegotiationConfigurer |
ContentNegotiationConfigurer.ignoreAcceptHeader(boolean ignoreAcceptHeader)
Indicate whether the HTTP
Accept header should be ignored altogether. |
ContentNegotiationConfigurer |
ContentNegotiationConfigurer.mediaType(String extension,
MediaType mediaType)
Add mappings from file extensions to media types.
|
ContentNegotiationConfigurer |
ContentNegotiationConfigurer.mediaTypes(Map<String,MediaType> mediaTypes)
Add mappings from file extensions to media types.
|
ContentNegotiationConfigurer |
ContentNegotiationConfigurer.parameterName(String parameterName)
Set the parameter name that can be used to determine the requested media type
if the
favorParameter(boolean) property is true . |
ContentNegotiationConfigurer |
ContentNegotiationConfigurer.replaceMediaTypes(Map<String,MediaType> mediaTypes)
Add mappings from file extensions to media types replacing any previous mappings.
|
ContentNegotiationConfigurer |
ContentNegotiationConfigurer.useJaf(boolean useJaf)
Indicate whether to use the Java Activation Framework as a fallback option
to map from file extensions to media types.
|
Modifier and Type | Method and Description |
---|---|
void |
WebMvcConfigurerAdapter.configureContentNegotiation(ContentNegotiationConfigurer configurer)
Configure content negotiation options.
|
protected void |
DelegatingWebMvcConfiguration.configureContentNegotiation(ContentNegotiationConfigurer configurer) |
void |
WebMvcConfigurer.configureContentNegotiation(ContentNegotiationConfigurer configurer)
Configure content negotiation options.
|
protected void |
WebMvcConfigurationSupport.configureContentNegotiation(ContentNegotiationConfigurer configurer)
Override this method to configure content negotiation.
|
Copyright © 2015. All rights reserved.