public abstract class HttpMediaTypeException
extends ServletException
MediaTypes
.Modifier and Type | Field and Description |
---|---|
private java.util.List<MediaType> |
supportedMediaTypes |
Modifier | Constructor and Description |
---|---|
protected |
HttpMediaTypeException(java.lang.String message)
Create a new HttpMediaTypeException.
|
protected |
HttpMediaTypeException(java.lang.String message,
java.util.List<MediaType> supportedMediaTypes)
Create a new HttpMediaTypeException with a list of supported media types.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<MediaType> |
getSupportedMediaTypes()
Return the list of supported media types.
|
private final java.util.List<MediaType> supportedMediaTypes
protected HttpMediaTypeException(java.lang.String message)
message
- the exception messageprotected HttpMediaTypeException(java.lang.String message, java.util.List<MediaType> supportedMediaTypes)
supportedMediaTypes
- the list of supported media typespublic java.util.List<MediaType> getSupportedMediaTypes()