类的使用
cn.taketoday.http.converter.HttpMessageNotWritableException
程序包
说明
Provides an HttpMessageConverter abstraction to convert between Java objects and HTTP input/output messages.
Provides HttpMessageConverter implementations for handling Atom and RSS feeds.
Provides HttpMessageConverter implementations for handling JSON.
Provides an HttpMessageConverter implementation for handling
Google Protocol Buffers.
Provides HttpMessageConverter implementations for handling XML.
Request context parameter resolvers
Web Handler
-
cn.taketoday.http.converter中HttpMessageNotWritableException的使用
修饰符和类型方法说明final voidAbstractGenericHttpMessageConverter.write(T t, Type type, MediaType contentType, HttpOutputMessage outputMessage) This implementation sets the default headers by callingAbstractHttpMessageConverter.addDefaultHeaders(cn.taketoday.http.HttpHeaders, T, cn.taketoday.http.MediaType), and then callsAbstractGenericHttpMessageConverter.writeInternal(T, cn.taketoday.http.HttpOutputMessage).final voidAbstractHttpMessageConverter.write(T t, MediaType contentType, HttpOutputMessage outputMessage) This implementation sets the default headers by callingAbstractHttpMessageConverter.addDefaultHeaders(cn.taketoday.http.HttpHeaders, T, cn.taketoday.http.MediaType), and then callsAbstractHttpMessageConverter.writeInternal(T, cn.taketoday.http.HttpOutputMessage).voidBufferedImageHttpMessageConverter.write(BufferedImage image, MediaType contentType, HttpOutputMessage outputMessage) voidFormHttpMessageConverter.write(cn.taketoday.util.MultiValueMap<String, ?> map, MediaType contentType, HttpOutputMessage outputMessage) voidGenericHttpMessageConverter.write(T t, Type type, MediaType contentType, HttpOutputMessage outputMessage) Write an given object to the given output message.voidHttpMessageConverter.write(T t, MediaType contentType, HttpOutputMessage outputMessage) Write an given object to the given output message.protected voidResourceHttpMessageConverter.writeContent(cn.taketoday.core.io.Resource resource, HttpOutputMessage outputMessage) protected voidAbstractGenericHttpMessageConverter.writeInternal(T t, HttpOutputMessage outputMessage) protected abstract voidAbstractGenericHttpMessageConverter.writeInternal(T t, Type type, HttpOutputMessage outputMessage) Abstract template method that writes the actual body.protected abstract voidAbstractHttpMessageConverter.writeInternal(T t, HttpOutputMessage outputMessage) Abstract template method that writes the actual body.private voidBufferedImageHttpMessageConverter.writeInternal(BufferedImage image, MediaType contentType, OutputStream body) protected voidResourceHttpMessageConverter.writeInternal(cn.taketoday.core.io.Resource resource, HttpOutputMessage outputMessage) protected voidResourceRegionHttpMessageConverter.writeInternal(Object object, Type type, HttpOutputMessage outputMessage) -
cn.taketoday.http.converter.feed中HttpMessageNotWritableException的使用
修饰符和类型方法说明protected voidAbstractWireFeedHttpMessageConverter.writeInternal(T wireFeed, HttpOutputMessage outputMessage) -
cn.taketoday.http.converter.json中HttpMessageNotWritableException的使用
修饰符和类型方法说明protected voidAbstractJackson2HttpMessageConverter.writeInternal(Object object, Type type, HttpOutputMessage outputMessage) protected final voidAbstractJsonHttpMessageConverter.writeInternal(Object object, Type type, HttpOutputMessage outputMessage) -
cn.taketoday.http.converter.protobuf中HttpMessageNotWritableException的使用
修饰符和类型方法说明protected voidProtobufHttpMessageConverter.writeInternal(com.google.protobuf.Message message, HttpOutputMessage outputMessage) -
cn.taketoday.http.converter.xml中HttpMessageNotWritableException的使用
修饰符和类型方法说明voidJaxb2CollectionHttpMessageConverter.write(T t, Type type, MediaType contentType, HttpOutputMessage outputMessage) protected final voidAbstractXmlHttpMessageConverter.writeInternal(T t, HttpOutputMessage outputMessage) protected voidSourceHttpMessageConverter.writeInternal(T t, HttpOutputMessage outputMessage) -
cn.taketoday.web.bind.resolver中HttpMessageNotWritableException的使用
修饰符和类型方法说明protected <T> voidAbstractMessageConverterMethodProcessor.writeWithMessageConverters(T value, cn.taketoday.core.MethodParameter returnType, RequestContext context) Writes the given return type to the given output message. -
cn.taketoday.web.handler中HttpMessageNotWritableException的使用
修饰符和类型方法说明protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleHttpMessageNotWritable(HttpMessageNotWritableException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofHttpMessageNotWritableException.protected ObjectSimpleHandlerExceptionHandler.handleHttpMessageNotWritable(HttpMessageNotWritableException ex, RequestContext request, Object handler) Handle the case where a message converter cannot write to an HTTP request.