| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | NotAcceptableStatusException(String reason)
Constructor for when the requested Content-Type is invalid. |
| public | NotAcceptableStatusException(List<MediaType> mediaTypes)
Constructor for when the requested Content-Type is not supported. |
| Modifier and Type | Method and Description |
|---|---|
| public HttpHeaders | getHeaders()
Overrides org. Overrides default org. |
| public HttpHeaders | getResponseHeaders()
Overrides org.
Deprecated
since 6.0. as of 6.0 in favor of
Delegates to getHeaders()
getHeaders().
|
| public List | getSupportedMediaTypes()
Return the list of supported content types in cases when the Accept header is parsed but not supported, or an empty list otherwise. |
| PARSE_ERROR_DETAIL_CODE | back to summary |
|---|---|
| private static final String PARSE_ERROR_DETAIL_CODE | |
| supportedMediaTypes | back to summary |
|---|---|
| private final List<MediaType> supportedMediaTypes | |
| NotAcceptableStatusException | back to summary |
|---|---|
| public NotAcceptableStatusException(String reason) Constructor for when the requested Content-Type is invalid. | |
| NotAcceptableStatusException | back to summary |
|---|---|
| public NotAcceptableStatusException(List<MediaType> mediaTypes) Constructor for when the requested Content-Type is not supported. | |
| getHeaders | back to summary |
|---|---|
| public HttpHeaders getHeaders() Overrides org. Overrides default org. Return HttpHeaders with an "Accept" header that documents the supported media types, if available, or an empty instance otherwise.
| |
| getResponseHeaders | back to summary |
|---|---|
| public HttpHeaders getResponseHeaders() Overrides org. Delegates to
| |
| getSupportedMediaTypes | back to summary |
|---|---|
| public List Return the list of supported content types in cases when the Accept header is parsed but not supported, or an empty list otherwise. | |