## Uses of Class
org.springframework.web.HttpMediaTypeNotAcceptableException

- Packages that use HttpMediaTypeNotAcceptableException
  Package | Description
  --- | ---
  org.springframework.web.accept | This package contains classes used to determine the requested the media types in a request.
  org.springframework.web.servlet.mvc.method.annotation | MVC infrastructure for annotation-based handler method processing, building on the `org.springframework.web.method.annotation` package.
  org.springframework.web.servlet.mvc.support | Support package for MVC controllers.

- - ### Uses of HttpMediaTypeNotAcceptableException in org.springframework.web.accept

    Methods in org.springframework.web.accept that throw HttpMediaTypeNotAcceptableException
    Modifier and Type | Method and Description
    --- | ---
    `protected MediaType` | AbstractMappingContentNegotiationStrategy.`handleNoMatch(NativeWebRequest request, String key)` Override to provide handling when a key is not resolved via.
    `protected MediaType` | ServletPathExtensionContentNegotiationStrategy.`handleNoMatch(NativeWebRequest webRequest, String extension)` Deprecated. Resolve file extension via `ServletContext.getMimeType(String)` and also delegate to base class for a potential `MediaTypeFactory` lookup.
    `List<MediaType>` | AbstractMappingContentNegotiationStrategy.`resolveMediaTypeKey(NativeWebRequest webRequest, String key)` An alternative to `AbstractMappingContentNegotiationStrategy.resolveMediaTypes(NativeWebRequest)` that accepts an already extracted key.
    `List<MediaType>` | AbstractMappingContentNegotiationStrategy.`resolveMediaTypes(NativeWebRequest webRequest)`
    `List<MediaType>` | ContentNegotiationStrategy.`resolveMediaTypes(NativeWebRequest webRequest)` Resolve the given request to a list of media types.
    `List<MediaType>` | ContentNegotiationManager.`resolveMediaTypes(NativeWebRequest request)`
    `List<MediaType>` | HeaderContentNegotiationStrategy.`resolveMediaTypes(NativeWebRequest request)` Resolve the given request to a list of media types.

  - ### Uses of HttpMediaTypeNotAcceptableException in org.springframework.web.servlet.mvc.method.annotation

    Methods in org.springframework.web.servlet.mvc.method.annotation with parameters of type HttpMediaTypeNotAcceptableException
    Modifier and Type | Method and Description
    --- | ---
    `protected ResponseEntity<Object>` | ResponseEntityExceptionHandler.`handleHttpMediaTypeNotAcceptable(HttpMediaTypeNotAcceptableException ex, HttpHeaders headers, HttpStatus status, WebRequest request)` Customize the response for HttpMediaTypeNotAcceptableException.

    Methods in org.springframework.web.servlet.mvc.method.annotation that throw HttpMediaTypeNotAcceptableException
    Modifier and Type | Method and Description
    --- | ---
    `void` | RequestResponseBodyMethodProcessor.`handleReturnValue(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest)`
    `protected <T> void` | AbstractMessageConverterMethodProcessor.`writeWithMessageConverters(T value, MethodParameter returnType, NativeWebRequest webRequest)` Writes the given return value to the given web request.
    `protected <T> void` | AbstractMessageConverterMethodProcessor.`writeWithMessageConverters(T value, MethodParameter returnType, ServletServerHttpRequest inputMessage, ServletServerHttpResponse outputMessage)` Writes the given return type to the given output message.

  - ### Uses of HttpMediaTypeNotAcceptableException in org.springframework.web.servlet.mvc.support

    Methods in org.springframework.web.servlet.mvc.support with parameters of type HttpMediaTypeNotAcceptableException
    Modifier and Type | Method and Description
    --- | ---
    `protected ModelAndView` | DefaultHandlerExceptionResolver.`handleHttpMediaTypeNotAcceptable(HttpMediaTypeNotAcceptableException ex, HttpServletRequest request, HttpServletResponse response, Object handler)` Handle the case where no message converters were found that were acceptable for the client (expressed via the `Accept` header).