public class CustomMappingJackson2HttpMessageConverter
extends org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
MappingJackson2HttpMessageConverter| Modifier and Type | Class and Description |
|---|---|
protected static class |
CustomMappingJackson2HttpMessageConverter.BufferingHttpOutputMessageWrapper |
protected static class |
CustomMappingJackson2HttpMessageConverter.ByteCountingOutputStream |
protected static class |
CustomMappingJackson2HttpMessageConverter.ContentLengthAccessibleHttpOutputMessageWrapper
While sound idea in theory to "count the bytes as you stream/write", thus
preserving memory, this does not work in practice since the HTTP headers
must be written to the HTTP output stream response before the body!
|
protected static interface |
CustomMappingJackson2HttpMessageConverter.HttpOutputMessageWrapper |
| Modifier and Type | Field and Description |
|---|---|
protected static int |
INITIAL_BYTE_ARRAY_BUFFER_SIZE |
| Constructor and Description |
|---|
CustomMappingJackson2HttpMessageConverter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
writeInternal(java.lang.Object object,
org.springframework.http.HttpOutputMessage outputMessage) |
setJsonPrefix, setPrefixJson, writePrefix, writeSuffixcanRead, canRead, canWrite, getContentLength, getDefaultContentType, getJavaType, getJsonEncoding, getObjectMapper, logWarningIfNecessary, read, readInternal, setObjectMapper, setPrettyPrint, supports, writeInternalcanWrite, writeaddDefaultHeaders, canRead, canWrite, getDefaultCharset, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, writeprotected static final int INITIAL_BYTE_ARRAY_BUFFER_SIZE
public CustomMappingJackson2HttpMessageConverter()
protected void writeInternal(java.lang.Object object,
org.springframework.http.HttpOutputMessage outputMessage)
throws java.io.IOException,
org.springframework.http.converter.HttpMessageNotWritableException
writeInternal in class org.springframework.http.converter.AbstractGenericHttpMessageConverter<java.lang.Object>java.io.IOExceptionorg.springframework.http.converter.HttpMessageNotWritableException