public class NotAcceptableStatusException extends ResponseStatusException
Constructor and Description |
---|
NotAcceptableStatusException(java.util.List<MediaType> supportedMediaTypes)
Constructor for when requested Content-Type is not supported.
|
NotAcceptableStatusException(java.lang.String reason)
Constructor for when the requested Content-Type is invalid.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<MediaType> |
getSupportedMediaTypes()
Return the list of supported content types in cases when the Accept
header is parsed but not supported, or an empty list otherwise.
|
getMessage, getReason, getStatus
contains, getMostSpecificCause, getRootCause
public NotAcceptableStatusException(java.lang.String reason)
public NotAcceptableStatusException(java.util.List<MediaType> supportedMediaTypes)
public java.util.List<MediaType> getSupportedMediaTypes()