@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
Constructor and Description |
---|
MappingFastJsonValue(Object value)
Deprecated.
Create a new instance wrapping the given POJO to be serialized.
|
Modifier and Type | Method and Description |
---|---|
String |
getJsonpFunction()
Deprecated.
Return the configured JSONP function name.
|
Object |
getValue()
Deprecated.
Return the POJO that needs to be serialized.
|
void |
setJsonpFunction(String functionName)
Deprecated.
Set the name of the JSONP function name.
|
void |
setValue(Object value)
Deprecated.
Modify the POJO to serialize.
|
void |
write(JSONSerializer serializer,
Object fieldName,
Type fieldType,
int features)
Deprecated.
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
JSONSerializable
write
in interface JSONSerializable
serializer
- json seriliazerfieldName
- field namefieldType
- field typefeatures
- field featuresIOException
Copyright © 2012–2022 Alibaba Group. All rights reserved.