Uses of Class
org.springframework.web.HttpMediaTypeNotAcceptableException
Package
Description
This package contains classes used to determine the requested the media types in a request.
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation
package.Support package for MVC controllers.
-
Uses of HttpMediaTypeNotAcceptableException in org.springframework.web.accept
Modifier and TypeMethodDescriptionprotected 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 viaServletContext.getMimeType(String)
and also delegate to base class for a potentialMediaTypeFactory
lookup.AbstractMappingContentNegotiationStrategy.resolveMediaTypeKey
(NativeWebRequest webRequest, String key) An alternative toAbstractMappingContentNegotiationStrategy.resolveMediaTypes(NativeWebRequest)
that accepts an already extracted key.AbstractMappingContentNegotiationStrategy.resolveMediaTypes
(NativeWebRequest webRequest) ContentNegotiationManager.resolveMediaTypes
(NativeWebRequest request) ContentNegotiationStrategy.resolveMediaTypes
(NativeWebRequest webRequest) Resolve the given request to a list of media types.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
Modifier and TypeMethodDescriptionprotected ResponseEntity<Object>
ResponseEntityExceptionHandler.handleHttpMediaTypeNotAcceptable
(HttpMediaTypeNotAcceptableException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofHttpMediaTypeNotAcceptableException
.Modifier and TypeMethodDescriptionvoid
RequestResponseBodyMethodProcessor.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) protected <T> void
AbstractMessageConverterMethodProcessor.writeWithMessageConverters
(T value, MethodParameter returnType, ServletServerHttpRequest inputMessage, ServletServerHttpResponse outputMessage) Writes the given return type to the given output message.protected <T> void
AbstractMessageConverterMethodProcessor.writeWithMessageConverters
(T value, MethodParameter returnType, NativeWebRequest webRequest) Writes the given return value to the given web request. -
Uses of HttpMediaTypeNotAcceptableException in org.springframework.web.servlet.mvc.support
Modifier and TypeMethodDescriptionprotected 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 theAccept
header).