Package | Description |
---|---|
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 an HttpMessageConverter implementations for handling JSON.
|
org.springframework.http.converter.xml |
Provides an HttpMessageConverter implementations for handling XML.
|
org.springframework.web.servlet.mvc.method.annotation |
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation package. |
org.springframework.web.servlet.mvc.support |
Support package for MVC controllers.
|
Modifier and Type | Method and Description |
---|---|
void |
BufferedImageHttpMessageConverter.write(BufferedImage image,
MediaType contentType,
HttpOutputMessage outputMessage) |
void |
FormHttpMessageConverter.write(MultiValueMap<String,?> map,
MediaType contentType,
HttpOutputMessage outputMessage) |
void |
AbstractHttpMessageConverter.write(T t,
MediaType contentType,
HttpOutputMessage outputMessage)
This implementation delegates to
AbstractHttpMessageConverter.getDefaultContentType(Object) if a content
type was not provided, calls AbstractHttpMessageConverter.getContentLength(T, org.springframework.http.MediaType) , and sets the corresponding headers
on the output message. |
void |
HttpMessageConverter.write(T t,
MediaType contentType,
HttpOutputMessage outputMessage)
Write an given object to the given output message.
|
protected void |
ResourceHttpMessageConverter.writeInternal(Resource resource,
HttpOutputMessage outputMessage) |
protected abstract void |
AbstractHttpMessageConverter.writeInternal(T t,
HttpOutputMessage outputMessage)
Abstract template method that writes the actual body.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractWireFeedHttpMessageConverter.writeInternal(T wireFeed,
HttpOutputMessage outputMessage) |
Modifier and Type | Method and Description |
---|---|
protected void |
MappingJackson2HttpMessageConverter.writeInternal(Object object,
HttpOutputMessage outputMessage) |
protected void |
MappingJacksonHttpMessageConverter.writeInternal(Object object,
HttpOutputMessage outputMessage) |
Modifier and Type | Method and Description |
---|---|
protected void |
SourceHttpMessageConverter.writeInternal(T t,
HttpOutputMessage outputMessage) |
Modifier and Type | Method and Description |
---|---|
protected ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleHttpMessageNotWritable(HttpMessageNotWritableException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for HttpMessageNotWritableException.
|
Modifier and Type | Method and Description |
---|---|
protected ModelAndView |
DefaultHandlerExceptionResolver.handleHttpMessageNotWritable(HttpMessageNotWritableException ex,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler)
Handle the case where a message converter
cannot write to a HTTP request.
|
Copyright © 2015. All rights reserved.