Class ResponseBodyMessageConverter
- java.lang.Object
-
- org.springframework.http.converter.AbstractHttpMessageConverter<T>
-
- org.springframework.http.converter.AbstractGenericHttpMessageConverter<Object>
-
- org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter
-
- org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
-
- net.cofcool.chaos.server.core.support.ResponseBodyMessageConverter
-
- All Implemented Interfaces:
org.springframework.http.converter.GenericHttpMessageConverter<Object>,org.springframework.http.converter.HttpMessageConverter<Object>
public class ResponseBodyMessageConverter extends org.springframework.http.converter.json.MappingJackson2HttpMessageConverter处理响应数据(JSON),Result等- Author:
- CofCool
-
-
Constructor Summary
Constructors Constructor Description ResponseBodyMessageConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanWrite(Class<?> clazz, org.springframework.http.MediaType mediaType)protected ConfigurationSupportgetConfiguration()voidsetConfiguration(ConfigurationSupport configuration)protected voidwriteInternal(Object object, Type type, org.springframework.http.HttpOutputMessage outputMessage)-
Methods inherited from class org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
setJsonPrefix, setPrefixJson, writePrefix
-
Methods inherited from class org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter
canRead, canRead, getCharset, getContentLength, getDefaultContentType, getJavaType, getJsonEncoding, getObjectMapper, logWarningIfNecessary, read, readInternal, setObjectMapper, setPrettyPrint, writeSuffix
-
Methods inherited from class org.springframework.http.converter.AbstractGenericHttpMessageConverter
canWrite, supports, write, writeInternal
-
Methods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
addDefaultHeaders, canRead, canWrite, getDefaultCharset, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, write
-
-
-
-
Method Detail
-
getConfiguration
protected ConfigurationSupport getConfiguration()
-
setConfiguration
public void setConfiguration(ConfigurationSupport configuration)
-
writeInternal
protected void writeInternal(Object object, Type type, org.springframework.http.HttpOutputMessage outputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotWritableException
- Overrides:
writeInternalin classorg.springframework.http.converter.json.AbstractJackson2HttpMessageConverter- Throws:
IOExceptionorg.springframework.http.converter.HttpMessageNotWritableException
-
canWrite
public boolean canWrite(Class<?> clazz, org.springframework.http.MediaType mediaType)
- Specified by:
canWritein interfaceorg.springframework.http.converter.HttpMessageConverter<Object>- Overrides:
canWritein classorg.springframework.http.converter.json.AbstractJackson2HttpMessageConverter
-
-