类的使用
cn.taketoday.web.HttpMediaTypeNotSupportedException
程序包
说明
Request context parameter resolvers
Web Handler
-
cn.taketoday.web.bind.resolver中HttpMediaTypeNotSupportedException的使用
修饰符和类型方法说明protected <T> ObjectAbstractMessageConverterMethodArgumentResolver.readWithMessageConverters(HttpInputMessage inputMessage, cn.taketoday.core.MethodParameter parameter, Type targetType) Create the method argument value of the expected parameter type by reading from the given HttpInputMessage.protected ObjectAbstractMessageConverterMethodArgumentResolver.readWithMessageConverters(RequestContext request, cn.taketoday.core.MethodParameter parameter, Type paramType) Create the method argument value of the expected parameter type by reading from the given request.protected ObjectRequestResponseBodyMethodProcessor.readWithMessageConverters(RequestContext request, cn.taketoday.core.MethodParameter parameter, Type paramType) HttpEntityMethodProcessor.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) -
cn.taketoday.web.handler中HttpMediaTypeNotSupportedException的使用
修饰符和类型方法说明protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleHttpMediaTypeNotSupported(HttpMediaTypeNotSupportedException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofHttpMediaTypeNotSupportedException.protected ObjectSimpleHandlerExceptionHandler.handleHttpMediaTypeNotSupported(HttpMediaTypeNotSupportedException ex, RequestContext request, Object handler) Handle the case where no message converters were found for PUT or POSTed content.