public class MappingFastJsonValue extends Object
FastJsonpHttpMessageConverter4 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.
| 构造器和说明 |
|---|
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.
|
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()
Copyright © 2012–2016 Alibaba Group. All rights reserved.