Class RESTHandlerUnsupportedMediaType

  • All Implemented Interfaces:
    java.io.Serializable

    public class RESTHandlerUnsupportedMediaType
    extends java.lang.RuntimeException
    This error is thrown by the RESTHandlerContainer when a request's media type is not supported.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getStatusCode()  
      void setStatusCode​(int code)  
      • 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

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RESTHandlerUnsupportedMediaType

        public RESTHandlerUnsupportedMediaType​(java.lang.String mediaType)
    • Method Detail

      • setStatusCode

        public void setStatusCode​(int code)
      • getStatusCode

        public int getStatusCode()