See: Description
Interface | Description |
---|---|
ContentNegotiationStrategy |
A strategy for resolving the requested media types for a request.
|
MediaTypeFileExtensionResolver |
Strategy to resolve
MediaType to a list of file extensions. |
Class | Description |
---|---|
AbstractMappingContentNegotiationStrategy |
Base class for
ContentNegotiationStrategy implementations with the
steps to resolve a request to media types. |
ContentNegotiationManager |
Central class to determine requested media types
for a request.
|
ContentNegotiationManagerFactoryBean |
Factory to create a
ContentNegotiationManager and configure it with
one or more ContentNegotiationStrategy instances via simple setters. |
FixedContentNegotiationStrategy |
A
ContentNegotiationStrategy that returns a fixed content type. |
HeaderContentNegotiationStrategy |
A
ContentNegotiationStrategy that checks the 'Accept' request header. |
MappingMediaTypeFileExtensionResolver |
An implementation of
MediaTypeFileExtensionResolver that maintains
lookups between file extensions and MediaTypes in both directions. |
ParameterContentNegotiationStrategy |
A
ContentNegotiationStrategy that resolves a query parameter to a
key to be used to look up a media type. |
PathExtensionContentNegotiationStrategy |
A
ContentNegotiationStrategy that resolves the file extension in the
request path to a key to be used to look up a media type. |
ServletPathExtensionContentNegotiationStrategy |
Extends
PathExtensionContentNegotiationStrategy that also uses
ServletContext.getMimeType(String) to resolve file extensions. |
ContentNegotiationStrategy
is the main
abstraction for determining requested media types
with implementations based on
path extensions, a
a request parameter, the
'Accept' header, or a
default content type.
ContentNegotiationManager
is used to delegate to one
ore more of the above strategies in a specific order.