Class ContentTypeNotSupportedException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ContentTypeNotSupportedException
    extends java.lang.RuntimeException
    An exception that occurs when the incoming HttpServletRequest content type is not supported by the ODataRequest.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ContentTypeNotSupportedException​(java.lang.String contentType, org.apache.olingo.odata2.api.exception.ODataUnsupportedMediaTypeException cause)
      Constructor to create ContentTypeNotSupportedException
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getContentType()
      Retrieves the content type that failed to parse.
      • 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

      • ContentTypeNotSupportedException

        public ContentTypeNotSupportedException​(java.lang.String contentType,
                                                org.apache.olingo.odata2.api.exception.ODataUnsupportedMediaTypeException cause)
        Constructor to create ContentTypeNotSupportedException
        Parameters:
        contentType - requested contentType
        cause - ODataUnsupportedMediaTypeException thrown when searching for a ContentType
    • Method Detail

      • getContentType

        public java.lang.String getContentType()
        Retrieves the content type that failed to parse.
        Returns:
        String contentType that came in the HttpServletRequest.