Class NotAcceptableWebAppException

  • All Implemented Interfaces:
    java.io.Serializable

    @Deprecated
    public class NotAcceptableWebAppException
    extends javax.ws.rs.WebApplicationException
    Deprecated.
    Will be removed in next minor release.
    The resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request.
    See Also:
    RFC 2616, Section 10.4.7, "406 Not Acceptable", Serialized Form
    • Field Summary

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

      Constructors 
      Constructor Description
      NotAcceptableWebAppException​(java.util.Collection<javax.ws.rs.core.Variant> supported)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.util.Collection<javax.ws.rs.core.Variant> getSupported()
      Deprecated.
      Returns the supported 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
      • supported

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

      • NotAcceptableWebAppException

        public NotAcceptableWebAppException​(java.util.Collection<javax.ws.rs.core.Variant> supported)
        Deprecated.
        Parameters:
        supported - the supported variants, selectable by the accept headers.
    • Method Detail

      • getSupported

        public java.util.Collection<javax.ws.rs.core.Variant> getSupported()
        Deprecated.
        Returns the supported Variants.
        Returns:
        the supported variants.