Uses of Class
org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer
Packages that use ContentNegotiationConfigurer
Package
Description
Annotation-based setup for Spring MVC.
- 
Uses of ContentNegotiationConfigurer in org.springframework.web.servlet.config.annotationMethods in org.springframework.web.servlet.config.annotation that return ContentNegotiationConfigurerModifier and TypeMethodDescriptionContentNegotiationConfigurer.defaultContentType(MediaType... defaultContentTypes) Set the default content type(s) to use when no content type is requested in order of priority.ContentNegotiationConfigurer.defaultContentTypeStrategy(ContentNegotiationStrategy defaultStrategy) Set a customContentNegotiationStrategyto use to determine the content type to use when no content type is requested.ContentNegotiationConfigurer.favorParameter(boolean favorParameter) Whether a request parameter ("format" by default) should be used to determine the requested media type.ContentNegotiationConfigurer.favorPathExtension(boolean favorPathExtension) Deprecated.as of 5.2.4.ContentNegotiationConfigurer.ignoreAcceptHeader(boolean ignoreAcceptHeader) Whether to disable checking the 'Accept' request header.ContentNegotiationConfigurer.ignoreUnknownPathExtensions(boolean ignore) Deprecated.as of 5.2.4.Add a mapping from a key, extracted from a path extension or a query parameter, to a MediaType.ContentNegotiationConfigurer.mediaTypes(Map<String, MediaType> mediaTypes) An alternative tomediaType(java.lang.String, org.springframework.http.MediaType).ContentNegotiationConfigurer.parameterName(String parameterName) Set the query parameter name to use whenfavorParameter(boolean)is on.ContentNegotiationConfigurer.replaceMediaTypes(Map<String, MediaType> mediaTypes) Similar tomediaType(java.lang.String, org.springframework.http.MediaType)but for replacing existing mappings.ContentNegotiationConfigurer.useJaf(boolean useJaf) Deprecated.as of 5.0, in favor ofuseRegisteredExtensionsOnly(boolean)which has reverse behaviorContentNegotiationConfigurer.useRegisteredExtensionsOnly(boolean useRegisteredExtensionsOnly) WhenfavorPathExtensionis set, this property determines whether to use only registeredMediaTypemappings to resolve a path extension to a specific MediaType.Methods in org.springframework.web.servlet.config.annotation with parameters of type ContentNegotiationConfigurerModifier and TypeMethodDescriptionprotected voidDelegatingWebMvcConfiguration.configureContentNegotiation(ContentNegotiationConfigurer configurer) protected voidWebMvcConfigurationSupport.configureContentNegotiation(ContentNegotiationConfigurer configurer) Override this method to configure content negotiation.default voidWebMvcConfigurer.configureContentNegotiation(ContentNegotiationConfigurer configurer) Configure content negotiation options.