public class FastJsonGenericHttpMessageConverter extends org.springframework.http.converter.AbstractGenericHttpMessageConverter<Object> implements org.springframework.core.Ordered
| 构造器和说明 |
|---|
FastJsonGenericHttpMessageConverter() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
canRead(Type type,
Class<?> contextClass,
org.springframework.http.MediaType mediaType) |
String |
converter(Object obj) |
Charset |
getCharset() |
com.alibaba.fastjson.serializer.SerializerFeature[] |
getFeatures() |
int |
getOrder() |
Object |
read(Type type,
Class<?> contextClass,
org.springframework.http.HttpInputMessage inputMessage) |
Object |
readByBytes(Type type,
byte[] bytes) |
Object |
readByString(Type type,
String jsonStr) |
protected Object |
readInternal(Class<?> clazz,
org.springframework.http.HttpInputMessage inputMessage) |
void |
setCharset(Charset charset) |
void |
setConverters(List<org.hswebframework.web.convert.CustomMessageConverter> converters) |
void |
setFeatures(com.alibaba.fastjson.serializer.SerializerFeature... features) |
protected boolean |
supports(Class<?> clazz) |
protected void |
writeInternal(Object obj,
Type type,
org.springframework.http.HttpOutputMessage outputMessage) |
canWrite, write, writeInternaladdDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, writepublic static final Charset UTF8
public void setConverters(List<org.hswebframework.web.convert.CustomMessageConverter> converters)
public int getOrder()
getOrder 在接口中 org.springframework.core.Orderedprotected boolean supports(Class<?> clazz)
supports 在类中 org.springframework.http.converter.AbstractGenericHttpMessageConverter<Object>public boolean canRead(Type type, Class<?> contextClass, org.springframework.http.MediaType mediaType)
protected Object readInternal(Class<?> clazz, org.springframework.http.HttpInputMessage inputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotReadableException
readInternal 在类中 org.springframework.http.converter.AbstractHttpMessageConverter<Object>IOExceptionorg.springframework.http.converter.HttpMessageNotReadableExceptionpublic Charset getCharset()
public void setCharset(Charset charset)
public com.alibaba.fastjson.serializer.SerializerFeature[] getFeatures()
public void setFeatures(com.alibaba.fastjson.serializer.SerializerFeature... features)
public Object read(Type type, Class<?> contextClass, org.springframework.http.HttpInputMessage inputMessage) throws IOException
read 在接口中 org.springframework.http.converter.GenericHttpMessageConverter<Object>IOExceptionprotected void writeInternal(Object obj, Type type, org.springframework.http.HttpOutputMessage outputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotWritableException
writeInternal 在类中 org.springframework.http.converter.AbstractGenericHttpMessageConverter<Object>IOExceptionorg.springframework.http.converter.HttpMessageNotWritableExceptionCopyright © 2016–2020. All rights reserved.