|
Spring Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.servlet.ServletException
org.springframework.web.HttpMediaTypeException
public abstract class HttpMediaTypeException
Abstract base for exceptions related to media types. Adds a list of supported MediaTypes.
| Constructor Summary | |
|---|---|
protected |
HttpMediaTypeException(java.lang.String message)
Create a new MediaTypeException. |
protected |
HttpMediaTypeException(java.lang.String message,
java.util.List<MediaType> supportedMediaTypes)
Create a new HttpMediaTypeNotSupportedException. |
| Method Summary | |
|---|---|
java.util.List<MediaType> |
getSupportedMediaTypes()
Return the list of supported media types. |
| Methods inherited from class javax.servlet.ServletException |
|---|
getRootCause |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected HttpMediaTypeException(java.lang.String message)
message - the exception message
protected HttpMediaTypeException(java.lang.String message,
java.util.List<MediaType> supportedMediaTypes)
supportedMediaTypes - the list of supported media types| Method Detail |
|---|
public java.util.List<MediaType> getSupportedMediaTypes()
|
Spring Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||