Class HttpMediaTypeException

    • 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.
      • Methods inherited from class javax.servlet.ServletException

        getRootCause
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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

      • 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 message
        supportedMediaTypes - 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