com.alibaba.fastjson.support.spring
Class FastJsonHttpMessageConverter4
- java.lang.Object
-
- org.springframework.http.converter.AbstractHttpMessageConverter<Object>
-
- com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter
-
- com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter4
-
- All Implemented Interfaces:
- org.springframework.http.converter.GenericHttpMessageConverter< Object>, org.springframework.http.converter.HttpMessageConverter< Object>
Deprecated.@Deprecated public class FastJsonHttpMessageConverter4 extends FastJsonHttpMessageConverter
keep the class for compatibility- See Also:
-
FastJsonHttpMessageConverter
-
Field Summary
Fields inherited from class com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter
APPLICATION_JAVASCRIPT
Constructor Summary
Constructors Constructor and Description FastJsonHttpMessageConverter4()
Deprecated.
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description boolean
canRead(Type type, Class<?> contextClass, org.springframework.http.MediaType mediaType)
Deprecated.boolean
canWrite(Type type, Class<?> clazz, org.springframework.http.MediaType mediaType)
Deprecated.Object
read(Type type, Class<?> contextClass, org.springframework.http.HttpInputMessage inputMessage)
Deprecated.void
write(Object o, Type type, org.springframework.http.MediaType contentType, org.springframework.http.HttpOutputMessage outputMessage)
Deprecated.Methods inherited from class com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter
addSerializeFilter, getCharset, getDateFormat, getFastJsonConfig, getFeatures, getFilters, setCharset, setDateFormat, setFastJsonConfig, setFeatures, setFilters
Methods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
canRead, canWrite, getDefaultCharset, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, write
-
Method Detail
canRead
public boolean canRead(Type type, Class<?> contextClass, org.springframework.http.MediaType mediaType)
Deprecated.- Specified by:
-
canRead
in interfaceorg.springframework.http.converter.GenericHttpMessageConverter<Object>
- Overrides:
-
canRead
in classFastJsonHttpMessageConverter
canWrite
public boolean canWrite(Type type, Class<?> clazz, org.springframework.http.MediaType mediaType)
Deprecated.- Specified by:
-
canWrite
in interfaceorg.springframework.http.converter.GenericHttpMessageConverter<Object>
- Overrides:
-
canWrite
in classFastJsonHttpMessageConverter
read
public Object read(Type type, Class<?> contextClass, org.springframework.http.HttpInputMessage inputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotReadableException
Deprecated.- Specified by:
-
read
in interfaceorg.springframework.http.converter.GenericHttpMessageConverter<Object>
- Overrides:
-
read
in classFastJsonHttpMessageConverter
- Throws:
-
IOException
-
org.springframework.http.converter.HttpMessageNotReadableException
write
public void write(Object o, Type type, org.springframework.http.MediaType contentType, org.springframework.http.HttpOutputMessage outputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotWritableException
Deprecated.- Specified by:
-
write
in interfaceorg.springframework.http.converter.GenericHttpMessageConverter<Object>
- Overrides:
-
write
in classFastJsonHttpMessageConverter
- Throws:
-
IOException
-
org.springframework.http.converter.HttpMessageNotWritableException
Copyright © 2012–2021 Alibaba Group. All rights reserved.