Class ContentNegotiationManager

java.lang.Object
org.springframework.web.accept.ContentNegotiationManager
All Implemented Interfaces:
ContentNegotiationStrategy, MediaTypeFileExtensionResolver

public class ContentNegotiationManager extends Object implements ContentNegotiationStrategy, MediaTypeFileExtensionResolver
Central class to determine requested media types for a request. This is done by delegating to a list of configured ContentNegotiationStrategy instances.

Also provides methods to look up file extensions for a media type. This is done by delegating to the list of configured MediaTypeFileExtensionResolver instances.

Since:
3.2
Author:
Rossen Stoyanchev, Juergen Hoeller