Uses of Class
org.springframework.web.HttpMediaTypeNotSupportedException
Packages that use HttpMediaTypeNotSupportedException
Package
Description
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation package.Support package for MVC controllers.
-
Uses of HttpMediaTypeNotSupportedException in org.springframework.web.servlet.mvc.method.annotation
Methods in org.springframework.web.servlet.mvc.method.annotation with parameters of type HttpMediaTypeNotSupportedExceptionModifier and TypeMethodDescriptionprotected @Nullable ResponseEntity<Object> ResponseEntityExceptionHandler.handleHttpMediaTypeNotSupported(HttpMediaTypeNotSupportedException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofHttpMediaTypeNotSupportedException.Methods in org.springframework.web.servlet.mvc.method.annotation that throw HttpMediaTypeNotSupportedExceptionModifier and TypeMethodDescriptionAbstractMessageConverterMethodArgumentResolver.readWithMessageConverters(HttpInputMessage inputMessage, MethodParameter parameter, Type targetType) Create the method argument value of the expected parameter type by reading from the given HttpInputMessage.AbstractMessageConverterMethodArgumentResolver.readWithMessageConverters(NativeWebRequest webRequest, MethodParameter parameter, Type paramType) Create the method argument value of the expected parameter type by reading from the given request.RequestResponseBodyMethodProcessor.readWithMessageConverters(NativeWebRequest webRequest, MethodParameter parameter, Type paramType) HttpEntityMethodProcessor.resolveArgument(MethodParameter parameter, @Nullable ModelAndViewContainer mavContainer, NativeWebRequest webRequest, @Nullable WebDataBinderFactory binderFactory) -
Uses of HttpMediaTypeNotSupportedException in org.springframework.web.servlet.mvc.support
Methods in org.springframework.web.servlet.mvc.support with parameters of type HttpMediaTypeNotSupportedExceptionModifier and TypeMethodDescriptionprotected @Nullable ModelAndViewDefaultHandlerExceptionResolver.handleHttpMediaTypeNotSupported(HttpMediaTypeNotSupportedException ex, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, @Nullable Object handler) Handle the case where no message converters were found for PUT or POSTed content.