Class MappingFastJsonValue

  • All Implemented Interfaces:
    JSONSerializable

    @Deprecated
    public class MappingFastJsonValue
    extends Object
    implements JSONSerializable
    Deprecated.
    A simple holder for the POJO to serialize via 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.

    Since:
    1.2.20
    Author:
    Jerry.Chen
    See Also:
    JSONPObject
    • Constructor Detail

      • MappingFastJsonValue

        public MappingFastJsonValue​(Object value)
        Deprecated.
        Create a new instance wrapping the given POJO to be serialized.
        Parameters:
        value - the Object to be serialized
    • Method Detail

      • setValue

        public void setValue​(Object value)
        Deprecated.
        Modify the POJO to serialize.
      • getValue

        public Object getValue()
        Deprecated.
        Return the POJO that needs to be serialized.
      • setJsonpFunction

        public void setJsonpFunction​(String functionName)
        Deprecated.
        Set the name of the JSONP function name.
      • getJsonpFunction

        public String getJsonpFunction()
        Deprecated.
        Return the configured JSONP function name.