public class FastJsonHttpMessageConverter extends org.springframework.http.converter.AbstractHttpMessageConverter<Object> implements org.springframework.http.converter.GenericHttpMessageConverter<Object>
Compatible Spring MVC version 4.2- (Below 4.2)
AbstractHttpMessageConverter,
GenericHttpMessageConverter| 构造器和说明 |
|---|
FastJsonHttpMessageConverter()
Can serialize/deserialize all types.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addSerializeFilter(SerializeFilter filter)
已过时。
|
boolean |
canRead(Type type,
Class<?> contextClass,
org.springframework.http.MediaType mediaType) |
boolean |
canWrite(Type type,
Class<?> contextClass,
org.springframework.http.MediaType mediaType) |
Charset |
getCharset()
已过时。
|
String |
getDateFormat()
已过时。
|
FastJsonConfig |
getFastJsonConfig() |
SerializerFeature[] |
getFeatures()
已过时。
|
SerializeFilter[] |
getFilters()
已过时。
|
Object |
read(Type type,
Class<?> contextClass,
org.springframework.http.HttpInputMessage inputMessage) |
void |
setCharset(Charset charset)
已过时。
|
void |
setDateFormat(String dateFormat)
已过时。
|
void |
setFastJsonConfig(FastJsonConfig fastJsonConfig) |
void |
setFeatures(SerializerFeature... features)
已过时。
|
void |
setFilters(SerializeFilter... filters)
已过时。
|
void |
write(Object t,
Type type,
org.springframework.http.MediaType contentType,
org.springframework.http.HttpOutputMessage outputMessage) |
public FastJsonHttpMessageConverter()
public FastJsonConfig getFastJsonConfig()
public void setFastJsonConfig(FastJsonConfig fastJsonConfig)
fastJsonConfig - the fastJsonConfig to set.@Deprecated public Charset getCharset()
@Deprecated public void setCharset(Charset charset)
@Deprecated public String getDateFormat()
@Deprecated public void setDateFormat(String dateFormat)
@Deprecated public SerializerFeature[] getFeatures()
@Deprecated public void setFeatures(SerializerFeature... features)
@Deprecated public SerializeFilter[] getFilters()
@Deprecated public void setFilters(SerializeFilter... filters)
@Deprecated public void addSerializeFilter(SerializeFilter filter)
public boolean canRead(Type type, Class<?> contextClass, org.springframework.http.MediaType mediaType)
canRead 在接口中 org.springframework.http.converter.GenericHttpMessageConverter<Object>public boolean canWrite(Type type, Class<?> contextClass, org.springframework.http.MediaType mediaType)
canWrite 在接口中 org.springframework.http.converter.GenericHttpMessageConverter<Object>public Object read(Type type, Class<?> contextClass, org.springframework.http.HttpInputMessage inputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotReadableException
read 在接口中 org.springframework.http.converter.GenericHttpMessageConverter<Object>IOExceptionorg.springframework.http.converter.HttpMessageNotReadableExceptionpublic void write(Object t, Type type, org.springframework.http.MediaType contentType, org.springframework.http.HttpOutputMessage outputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotWritableException
write 在接口中 org.springframework.http.converter.GenericHttpMessageConverter<Object>IOExceptionorg.springframework.http.converter.HttpMessageNotWritableExceptionCopyright © 2012–2016 Alibaba Group. All rights reserved.