Package com.aspectran.web.support.http
Class HttpMediaTypeNotSupportedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- javax.servlet.ServletException
-
- com.aspectran.web.support.http.HttpMediaTypeException
-
- com.aspectran.web.support.http.HttpMediaTypeNotSupportedException
-
- All Implemented Interfaces:
java.io.Serializable
public class HttpMediaTypeNotSupportedException extends HttpMediaTypeException
This class is a clone of org.springframework.web.HttpMediaTypeNotSupportedException
Exception thrown when a client POSTs, PUTs, or PATCHes content of a type not supported by request handler.- Author:
- Arjen Poutsma
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpMediaTypeNotSupportedException(MediaType contentType, java.util.List<MediaType> supportedMediaTypes)
Create a new HttpMediaTypeNotSupportedException.HttpMediaTypeNotSupportedException(MediaType contentType, java.util.List<MediaType> supportedMediaTypes, java.lang.String msg)
Create a new HttpMediaTypeNotSupportedException.HttpMediaTypeNotSupportedException(java.lang.String message)
Create a new HttpMediaTypeNotSupportedException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MediaType
getContentType()
Return the HTTP request content type method that caused the failure.-
Methods inherited from class com.aspectran.web.support.http.HttpMediaTypeException
getSupportedMediaTypes
-
-
-
-
Constructor Detail
-
HttpMediaTypeNotSupportedException
public HttpMediaTypeNotSupportedException(java.lang.String message)
Create a new HttpMediaTypeNotSupportedException.- Parameters:
message
- the exception message
-
HttpMediaTypeNotSupportedException
public HttpMediaTypeNotSupportedException(@Nullable MediaType contentType, java.util.List<MediaType> supportedMediaTypes)
Create a new HttpMediaTypeNotSupportedException.- Parameters:
contentType
- the unsupported content typesupportedMediaTypes
- the list of supported media types
-
HttpMediaTypeNotSupportedException
public HttpMediaTypeNotSupportedException(@Nullable MediaType contentType, java.util.List<MediaType> supportedMediaTypes, java.lang.String msg)
Create a new HttpMediaTypeNotSupportedException.- Parameters:
contentType
- the unsupported content typesupportedMediaTypes
- the list of supported media typesmsg
- the detail message
-
-