UnsupportedMediaTypeStatusException,
with this class never thrown by Spring code and to be removed in 5.3@Deprecated public class MediaTypeNotSupportedStatusException extends ResponseStatusException
| Constructor and Description |
|---|
MediaTypeNotSupportedStatusException(List<MediaType> supportedMediaTypes)
Deprecated.
Constructor for when the Content-Type is not supported.
|
MediaTypeNotSupportedStatusException(String reason)
Deprecated.
Constructor for when the Content-Type is invalid.
|
| Modifier and Type | Method and Description |
|---|---|
List<MediaType> |
getSupportedMediaTypes()
Deprecated.
Return the list of supported content types in cases when the Accept
header is parsed but not supported, or an empty list otherwise.
|
getHeaders, getMessage, getRawStatusCode, getReason, getResponseHeaders, getStatuscontains, getMostSpecificCause, getRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MediaTypeNotSupportedStatusException(String reason)