Package | Description |
---|---|
org.springframework.web.accept |
This package contains classes used to determine the requested the media types in a request.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractMappingContentNegotiationStrategy
A base class for ContentNegotiationStrategy types that maintain a map with keys
such as "json" and media types such as "application/json".
|
class |
ContentNegotiationManager
This class is used to determine the requested media types
of a request by delegating to a list of ContentNegotiationStrategy instances.
|
class |
MappingMediaTypeFileExtensionResolver
An implementation of
MediaTypeFileExtensionResolver that maintains a lookup
from extension to MediaType. |
class |
ParameterContentNegotiationStrategy
A ContentNegotiationStrategy that uses a request parameter to determine what
media types are requested.
|
class |
PathExtensionContentNegotiationStrategy
A ContentNegotiationStrategy that uses the path extension of the URL to
determine what media types are requested.
|
class |
ServletPathExtensionContentNegotiationStrategy
An extension of
PathExtensionContentNegotiationStrategy that uses
ServletContext.getMimeType(String) as a fallback mechanism when
matching a path extension to a media type. |
Modifier and Type | Method and Description |
---|---|
void |
ContentNegotiationManager.addFileExtensionResolvers(MediaTypeFileExtensionResolver... resolvers)
Add MediaTypeFileExtensionResolver instances.
|
Copyright © 2015. All rights reserved.