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.
ClassDescriptionBase class for
ContentNegotiationStrategyimplementations with the steps to resolve a request to media types.Central class to determine requested media types for a request.Factory to create a
ContentNegotiationManagerand configure it with
ContentNegotiationStrategyinstances.A strategy for resolving the requested media types for a request.A
ContentNegotiationStrategythat returns a fixed content type.A
ContentNegotiationStrategythat checks the 'Accept' request header.An implementation of
MediaTypeFileExtensionResolverthat maintains lookups between file extensions and MediaTypes in both directions.Strategy to resolve a
MediaTypeto a list of file extensions — for example, to resolve "application/json" to "json".Strategy that resolves the requested content type from a query parameter.Deprecated.as of 5.2.4.Deprecated.as of 5.2.4.