类的使用
org.springframework.http.converter.HttpMessageNotWritableException
使用HttpMessageNotWritableException的程序包 程序包 说明 org.springframework.http.converter Provides an HttpMessageConverter abstraction to convert between Java objects and HTTP input/output messages.org.springframework.http.converter.feed Provides HttpMessageConverter implementations for handling Atom and RSS feeds.org.springframework.http.converter.json Provides HttpMessageConverter implementations for handling JSON.org.springframework.http.converter.protobuf Provides an HttpMessageConverter implementation for handling Google Protocol Buffers.org.springframework.http.converter.xml Provides HttpMessageConverter implementations for handling XML.org.springframework.web.servlet.mvc.method.annotation MVC infrastructure for annotation-based handler method processing, building on theorg.springframework.web.method.annotation
package.org.springframework.web.servlet.mvc.support Support package for MVC controllers.org.springframework.http.converter中HttpMessageNotWritableException的使用
抛出HttpMessageNotWritableException的org.springframework.http.converter中的方法 修饰符和类型 方法 说明 void
AbstractGenericHttpMessageConverter. write(T t, Type type, 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)
.void
AbstractHttpMessageConverter. write(T t, 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)
.void
BufferedImageHttpMessageConverter. write(BufferedImage image, MediaType contentType, HttpOutputMessage outputMessage)
void
FormHttpMessageConverter. write(MultiValueMap<String,?> map, MediaType contentType, HttpOutputMessage outputMessage)
void
GenericHttpMessageConverter. write(T t, Type type, MediaType contentType, HttpOutputMessage outputMessage)
Write an given object to the given output message.void
HttpMessageConverter. write(T t, MediaType contentType, HttpOutputMessage outputMessage)
Write an given object to the given output message.protected void
ResourceHttpMessageConverter. writeContent(Resource resource, HttpOutputMessage outputMessage)
protected abstract void
AbstractGenericHttpMessageConverter. writeInternal(T t, 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 void
ResourceHttpMessageConverter. writeInternal(Resource resource, HttpOutputMessage outputMessage)
protected void
ResourceRegionHttpMessageConverter. writeInternal(Object object, Type type, HttpOutputMessage outputMessage)
org.springframework.http.converter.feed中HttpMessageNotWritableException的使用
抛出HttpMessageNotWritableException的org.springframework.http.converter.feed中的方法 修饰符和类型 方法 说明 protected void
AbstractWireFeedHttpMessageConverter. writeInternal(T wireFeed, HttpOutputMessage outputMessage)
org.springframework.http.converter.json中HttpMessageNotWritableException的使用
抛出HttpMessageNotWritableException的org.springframework.http.converter.json中的方法 修饰符和类型 方法 说明 protected void
AbstractJackson2HttpMessageConverter. writeInternal(Object object, Type type, HttpOutputMessage outputMessage)
protected void
AbstractJsonHttpMessageConverter. writeInternal(Object object, Type type, HttpOutputMessage outputMessage)
org.springframework.http.converter.protobuf中HttpMessageNotWritableException的使用
抛出HttpMessageNotWritableException的org.springframework.http.converter.protobuf中的方法 修饰符和类型 方法 说明 protected void
ProtobufHttpMessageConverter. writeInternal(com.google.protobuf.Message message, HttpOutputMessage outputMessage)
org.springframework.http.converter.xml中HttpMessageNotWritableException的使用
抛出HttpMessageNotWritableException的org.springframework.http.converter.xml中的方法 修饰符和类型 方法 说明 void
Jaxb2CollectionHttpMessageConverter. write(T t, Type type, MediaType contentType, HttpOutputMessage outputMessage)
protected void
AbstractXmlHttpMessageConverter. writeInternal(T t, HttpOutputMessage outputMessage)
protected void
SourceHttpMessageConverter. writeInternal(T t, HttpOutputMessage outputMessage)
org.springframework.web.servlet.mvc.method.annotation中HttpMessageNotWritableException的使用
参数类型为HttpMessageNotWritableException的org.springframework.web.servlet.mvc.method.annotation中的方法 修饰符和类型 方法 说明 protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleHttpMessageNotWritable(HttpMessageNotWritableException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for HttpMessageNotWritableException.抛出HttpMessageNotWritableException的org.springframework.web.servlet.mvc.method.annotation中的方法 修饰符和类型 方法 说明 void
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.org.springframework.web.servlet.mvc.support中HttpMessageNotWritableException的使用
参数类型为HttpMessageNotWritableException的org.springframework.web.servlet.mvc.support中的方法 修饰符和类型 方法 说明 protected ModelAndView
DefaultHandlerExceptionResolver. handleHttpMessageNotWritable(HttpMessageNotWritableException ex, HttpServletRequest request, HttpServletResponse response, Object handler)
Handle the case where a message converter cannot write to an HTTP request.