Uses of Class
org.springframework.http.converter.HttpMessageNotWritableException
Package
Description
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.
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation
package.Support package for MVC controllers.
-
Uses of HttpMessageNotWritableException in org.springframework.http.converter
Modifier and TypeMethodDescriptionfinal void
AbstractGenericHttpMessageConverter.write
(T t, @Nullable Type type, @Nullable MediaType contentType, HttpOutputMessage outputMessage) This implementation sets the default headers by callingAbstractHttpMessageConverter.addDefaultHeaders(org.springframework.http.HttpHeaders, T, org.springframework.http.MediaType)
, and then callsAbstractGenericHttpMessageConverter.writeInternal(T, org.springframework.http.HttpOutputMessage)
.final void
AbstractHttpMessageConverter.write
(T t, @Nullable MediaType contentType, HttpOutputMessage outputMessage) This implementation sets the default headers by callingAbstractHttpMessageConverter.addDefaultHeaders(org.springframework.http.HttpHeaders, T, org.springframework.http.MediaType)
, and then callsAbstractHttpMessageConverter.writeInternal(T, org.springframework.http.HttpOutputMessage)
.final void
AbstractSmartHttpMessageConverter.write
(T t, ResolvableType type, @Nullable MediaType contentType, HttpOutputMessage outputMessage, @Nullable Map<String, Object> hints) This implementation sets the default headers by callingAbstractHttpMessageConverter.addDefaultHeaders(org.springframework.http.HttpHeaders, T, org.springframework.http.MediaType)
, and then callsAbstractSmartHttpMessageConverter.writeInternal(T, org.springframework.http.HttpOutputMessage)
.void
BufferedImageHttpMessageConverter.write
(BufferedImage image, @Nullable MediaType contentType, HttpOutputMessage outputMessage) void
FormHttpMessageConverter.write
(MultiValueMap<String, ?> map, @Nullable MediaType contentType, HttpOutputMessage outputMessage) void
GenericHttpMessageConverter.write
(T t, @Nullable Type type, @Nullable MediaType contentType, HttpOutputMessage outputMessage) Write a given object to the given output message.void
HttpMessageConverter.write
(T t, @Nullable MediaType contentType, HttpOutputMessage outputMessage) Write a given object to the given output message.default void
SmartHttpMessageConverter.write
(T t, @Nullable MediaType contentType, HttpOutputMessage outputMessage) void
SmartHttpMessageConverter.write
(T t, ResolvableType type, @Nullable MediaType contentType, HttpOutputMessage outputMessage, @Nullable Map<String, Object> hints) Write a given object to the given output message.protected void
ResourceHttpMessageConverter.writeContent
(Resource resource, HttpOutputMessage outputMessage) protected abstract void
AbstractGenericHttpMessageConverter.writeInternal
(T t, @Nullable Type type, HttpOutputMessage outputMessage) Abstract template method that writes the actual body.protected void
AbstractGenericHttpMessageConverter.writeInternal
(T t, HttpOutputMessage outputMessage) protected abstract void
AbstractHttpMessageConverter.writeInternal
(T t, HttpOutputMessage outputMessage) Abstract template method that writes the actual body.protected abstract void
AbstractKotlinSerializationHttpMessageConverter.writeInternal
(Object object, kotlinx.serialization.KSerializer<Object> serializer, T format, HttpOutputMessage outputMessage) Write the given object to the output message with the given serializer and format.protected final void
AbstractKotlinSerializationHttpMessageConverter.writeInternal
(Object object, ResolvableType type, HttpOutputMessage outputMessage, @Nullable Map<String, Object> hints) protected abstract void
AbstractSmartHttpMessageConverter.writeInternal
(T t, ResolvableType type, HttpOutputMessage outputMessage, @Nullable Map<String, Object> hints) Abstract template method that writes the actual body.protected void
AbstractSmartHttpMessageConverter.writeInternal
(T t, HttpOutputMessage outputMessage) protected void
KotlinSerializationBinaryHttpMessageConverter.writeInternal
(Object object, kotlinx.serialization.KSerializer<Object> serializer, T format, HttpOutputMessage outputMessage) protected void
KotlinSerializationStringHttpMessageConverter.writeInternal
(Object object, kotlinx.serialization.KSerializer<Object> serializer, T format, HttpOutputMessage outputMessage) protected void
ResourceHttpMessageConverter.writeInternal
(Resource resource, HttpOutputMessage outputMessage) protected void
ResourceRegionHttpMessageConverter.writeInternal
(Object object, @Nullable Type type, HttpOutputMessage outputMessage) -
Uses of HttpMessageNotWritableException in org.springframework.http.converter.feed
Modifier and TypeMethodDescriptionprotected void
AbstractWireFeedHttpMessageConverter.writeInternal
(T wireFeed, HttpOutputMessage outputMessage) -
Uses of HttpMessageNotWritableException in org.springframework.http.converter.json
Modifier and TypeMethodDescriptionprotected void
AbstractJackson2HttpMessageConverter.writeInternal
(Object object, @Nullable Type type, HttpOutputMessage outputMessage) protected final void
AbstractJsonHttpMessageConverter.writeInternal
(Object object, @Nullable Type type, HttpOutputMessage outputMessage) -
Uses of HttpMessageNotWritableException in org.springframework.http.converter.protobuf
Modifier and TypeMethodDescriptionprotected void
ProtobufHttpMessageConverter.writeInternal
(com.google.protobuf.Message message, HttpOutputMessage outputMessage) -
Uses of HttpMessageNotWritableException in org.springframework.http.converter.xml
Modifier and TypeMethodDescriptionvoid
Jaxb2CollectionHttpMessageConverter.write
(T t, @Nullable Type type, @Nullable MediaType contentType, HttpOutputMessage outputMessage) protected final void
AbstractXmlHttpMessageConverter.writeInternal
(T t, HttpOutputMessage outputMessage) protected void
SourceHttpMessageConverter.writeInternal
(T t, HttpOutputMessage outputMessage) -
Uses of HttpMessageNotWritableException in org.springframework.web.servlet.mvc.method.annotation
Modifier and TypeMethodDescriptionprotected @Nullable ResponseEntity<Object>
ResponseEntityExceptionHandler.handleHttpMessageNotWritable
(HttpMessageNotWritableException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) Customize the handling ofHttpMessageNotWritableException
.Modifier and TypeMethodDescriptionvoid
RequestResponseBodyMethodProcessor.handleReturnValue
(@Nullable Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) protected <T> void
AbstractMessageConverterMethodProcessor.writeWithMessageConverters
(@Nullable 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 HttpMessageNotWritableException in org.springframework.web.servlet.mvc.support
Modifier and TypeMethodDescriptionprotected ModelAndView
DefaultHandlerExceptionResolver.handleHttpMessageNotWritable
(HttpMessageNotWritableException ex, HttpServletRequest request, HttpServletResponse response, @Nullable Object handler) Handle the case where a message converter cannot write to an HTTP response.