Generated by
JDiff

Class org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer

Changed Constructors
ContentNegotiationConfigurer(ServletContext) Change in type from void to ServletContext.
Documentation changed from old to new.
Class constructor with javax.servlet.ServletContext.
 

Removed Methods
ContentNegotiationConfigurer addMediaType(String, MediaType) Add mappings from file extensions to media types.
ContentNegotiationConfigurer addMediaTypes(Map<String, MediaType>) Add mappings from file extensions to media types.
ContentNegotiationConfigurer setDefaultContentType(MediaType) Set the default content type.
ContentNegotiationConfigurer setFavorParameter(boolean) Indicate whether a request parameter should be used to determine the requested media type with the 2nd highest priority, i.e.
ContentNegotiationConfigurer setFavorPathExtension(boolean) Indicate whether the extension of the request path should be used to determine the requested media type with the highest priority.
ContentNegotiationConfigurer setIgnoreAcceptHeader(boolean) Indicate whether the HTTP {@code Accept} header should be ignored altogether.
ContentNegotiationConfigurer setParameterName(String) Set the parameter name that can be used to determine the requested media type if the .setFavorParameter property is {@code true}.
ContentNegotiationConfigurer setUseJaf(boolean) Indicate whether to use the Java Activation Framework as a fallback option to map from file extensions to media types.
 

Added Methods
ContentNegotiationConfigurer defaultContentType(MediaType) Set the default content type.
ContentNegotiationConfigurer favorParameter(boolean) Indicate whether a request parameter should be used to determine the requested media type with the 2nd highest priority, i.e.
ContentNegotiationConfigurer favorPathExtension(boolean) Indicate whether the extension of the request path should be used to determine the requested media type with the highest priority.
ContentNegotiationConfigurer ignoreAcceptHeader(boolean) Indicate whether the HTTP {@code Accept} header should be ignored altogether.
ContentNegotiationConfigurer mediaType(String, MediaType) Add mappings from file extensions to media types.
ContentNegotiationConfigurer mediaTypes(Map<String, MediaType>) Add mappings from file extensions to media types.
ContentNegotiationConfigurer parameterName(String) Set the parameter name that can be used to determine the requested media type if the .setFavorParameter property is {@code true}.
ContentNegotiationConfigurer useJaf(boolean) Indicate whether to use the Java Activation Framework as a fallback option to map from file extensions to media types.
 

Changed Methods
ContentNegotiationManager getContentNegotiationManager() Change in exceptions thrown from no exceptions to java.lang.Exception.
Documentation changed from old to new.
Return the configured ContentNegotiationManager instance
ContentNegotiationConfigurer replaceMediaTypes(Map<String, MediaType>) Documentation changed from old to new.
Add mappings from file extensions to media types replacing any previous mappings.