Package com.aspectran.web.support.http
Class HttpMediaTypeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- javax.servlet.ServletException
-
- com.aspectran.web.support.http.HttpMediaTypeException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
HttpMediaTypeNotAcceptableException
,HttpMediaTypeNotSupportedException
public abstract class HttpMediaTypeException extends javax.servlet.ServletException
This class is a clone of org.springframework.web.HttpMediaTypeException
Abstract base for exceptions related to media types. Adds a list of supportedMediaTypes
.- Author:
- Arjen Poutsma
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<MediaType>
getSupportedMediaTypes()
Return the list of supported media types.
-
-
-
Constructor Detail
-
HttpMediaTypeException
protected HttpMediaTypeException(java.lang.String message)
Create a new HttpMediaTypeException.- Parameters:
message
- the exception message
-
HttpMediaTypeException
protected HttpMediaTypeException(java.lang.String message, java.util.List<MediaType> supportedMediaTypes)
Create a new HttpMediaTypeException with a list of supported media types.- Parameters:
message
- the exception messagesupportedMediaTypes
- the list of supported media types
-
-
Method Detail
-
getSupportedMediaTypes
public java.util.List<MediaType> getSupportedMediaTypes()
Return the list of supported media types.- Returns:
- the list of supported media types
-
-