ContentNegotiationStrategy that returns a fixed content type.
| Access | Constructor and Description |
|---|---|
| public | |
| public | FixedContentNegotiationStrategy(List<MediaType> contentTypes)
Constructor with an ordered List of default |
| Modifier and Type | Method and Description |
|---|---|
| public List | |
| public List | resolveMediaTypes(NativeWebRequest
the current request request)Implements org. |
| contentTypes | back to summary |
|---|---|
| private final List<MediaType> contentTypes | |
| FixedContentNegotiationStrategy | back to summary |
|---|---|
| public FixedContentNegotiationStrategy(MediaType contentType) Constructor with a single default | |
| FixedContentNegotiationStrategy | back to summary |
|---|---|
| public FixedContentNegotiationStrategy(List<MediaType> contentTypes) Constructor with an ordered List of default Consider appending
| |
| getContentTypes | back to summary |
|---|---|
| public List Return the configured list of media types. | |
| resolveMediaTypes | back to summary |
|---|---|
| public List Implements org. Doc from org. Resolve the given request to a list of media types. The returned list is ordered by specificity first and by quality parameter second.
| |