@Deprecated public class MappingFastJsonValue extends Object implements JSONSerializable
FastJsonHttpMessageConverter along with further
serialization instructions to be passed in to the converter.
On the server side this wrapper is added with a ResponseBodyInterceptor after content negotiation selects the
converter to use but before the write.
On the client side, simply wrap the POJO and pass it in to the RestTemplate.
JSONPObject| 构造器和说明 |
|---|
MappingFastJsonValue(Object value)
已过时。
Create a new instance wrapping the given POJO to be serialized.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getJsonpFunction()
已过时。
Return the configured JSONP function name.
|
Object |
getValue()
已过时。
Return the POJO that needs to be serialized.
|
void |
setJsonpFunction(String functionName)
已过时。
Set the name of the JSONP function name.
|
void |
setValue(Object value)
已过时。
Modify the POJO to serialize.
|
void |
write(JSONSerializer serializer,
Object fieldName,
Type fieldType,
int features)
已过时。
write to json
|
public MappingFastJsonValue(Object value)
value - the Object to be serializedpublic void setValue(Object value)
public Object getValue()
public void setJsonpFunction(String functionName)
public String getJsonpFunction()
public void write(JSONSerializer serializer, Object fieldName, Type fieldType, int features) throws IOException
JSONSerializablewrite 在接口中 JSONSerializableserializer - json seriliazerfieldName - field namefieldType - field typefeatures - field featuresIOExceptionCopyright © 2012–2020 Alibaba Group. All rights reserved.