Class UnsupportedMediaTypeWebAppException

  • All Implemented Interfaces:
    java.io.Serializable

    @Deprecated
    public class UnsupportedMediaTypeWebAppException
    extends javax.ws.rs.WebApplicationException
    Deprecated.
    Will be removed in next minor release.
    The server is refusing to service the request because the entity of the request is in a format not accepted by the requested resource for the requested method.
    See Also:
    RFC 2616, Section 10.4.16, "415 Unsupported Media Type", Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Collection<javax.ws.rs.core.Variant> accepted
      Deprecated.
       
      private static long serialVersionUID
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.util.Collection<javax.ws.rs.core.Variant> getAccepted()
      Deprecated.
      Returns the accepted Variants.
      • Methods inherited from class javax.ws.rs.WebApplicationException

        getResponse
      • 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
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Deprecated.
        See Also:
        Constant Field Values
      • accepted

        private final java.util.Collection<javax.ws.rs.core.Variant> accepted
        Deprecated.
    • Constructor Detail

      • UnsupportedMediaTypeWebAppException

        public UnsupportedMediaTypeWebAppException​(java.util.Collection<javax.ws.rs.core.Variant> accepted)
        Deprecated.
        Parameters:
        accepted - the accepted Variants.
    • Method Detail

      • getAccepted

        public java.util.Collection<javax.ws.rs.core.Variant> getAccepted()
        Deprecated.
        Returns the accepted Variants.
        Returns:
        the accepted MediaTypes.