public class FixedContentNegotiationStrategy extends Object implements ContentNegotiationStrategy
Constructor and Description |
---|
FixedContentNegotiationStrategy(MediaType defaultContentType)
Create an instance that always returns the given content type.
|
Modifier and Type | Method and Description |
---|---|
List<MediaType> |
resolveMediaTypes(NativeWebRequest webRequest)
Resolve the given request to a list of media types.
|
public FixedContentNegotiationStrategy(MediaType defaultContentType)
public List<MediaType> resolveMediaTypes(NativeWebRequest webRequest)
ContentNegotiationStrategy
resolveMediaTypes
in interface ContentNegotiationStrategy
webRequest
- the current requestnull