public class FixedContentNegotiationStrategy extends Object implements ContentNegotiationStrategy
Constructor and Description |
---|
FixedContentNegotiationStrategy(org.springframework.http.MediaType defaultContentType)
Create an instance that always returns the given content type.
|
Modifier and Type | Method and Description |
---|---|
List<org.springframework.http.MediaType> |
resolveMediaTypes(org.springframework.web.context.request.NativeWebRequest webRequest)
Resolve the given request to a list of media types.
|
public FixedContentNegotiationStrategy(org.springframework.http.MediaType defaultContentType)
public List<org.springframework.http.MediaType> resolveMediaTypes(org.springframework.web.context.request.NativeWebRequest webRequest)
ContentNegotiationStrategy
resolveMediaTypes
in interface ContentNegotiationStrategy
webRequest
- the current requestnull
)Copyright © 2006–2018 TinyGroup. All rights reserved.