Class NotAcceptableException

All Implemented Interfaces:
Serializable

public final class NotAcceptableException extends HttpStatusException
Exception thrown when none of the produceable content types matches any of the accepted types.
Since:
4.6.0
Author:
Sergio del Amo
See Also:
  • Constructor Details

    • NotAcceptableException

      public NotAcceptableException(Collection<String> acceptedTypes, Collection<String> produceableContentTypes)
      Parameters:
      acceptedTypes - Accepted types as signaled in the Request
      produceableContentTypes - types that the server can produce
  • Method Details

    • getAcceptedTypes

      public Collection<String> getAcceptedTypes()
      Returns:
      Accepted types as signaled in the Request
    • getProduceableContentTypes

      public Collection<String> getProduceableContentTypes()
      Returns:
      types that the server can produce