Package com.rabbitmq.tools.jsonrpc
Class DefaultJsonRpcMapper
- java.lang.Object
-
- com.rabbitmq.tools.jsonrpc.DefaultJsonRpcMapper
-
- All Implemented Interfaces:
JsonRpcMapper
public class DefaultJsonRpcMapper extends Object implements JsonRpcMapper
Deprecated.useJacksonJsonRpcMapper
insteadSimpleJsonRpcMapper
based on homegrown JSON utilities. Handles integers, doubles, strings, booleans, and arrays of those types.For a more comprehensive set of features, use
JacksonJsonRpcMapper
.Will be removed in 6.0
- Since:
- 4.8.0
- See Also:
JsonRpcMapper
,JacksonJsonRpcMapper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.rabbitmq.tools.jsonrpc.JsonRpcMapper
JsonRpcMapper.JsonRpcRequest, JsonRpcMapper.JsonRpcResponse
-
-
Constructor Summary
Constructors Constructor Description DefaultJsonRpcMapper()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description JsonRpcMapper.JsonRpcRequest
parse(String requestBody, ServiceDescription description)
Deprecated.Parses a JSON RPC request.JsonRpcMapper.JsonRpcResponse
parse(String responseBody, Class<?> expectedType)
Deprecated.Parses a JSON RPC response.String
write(Object input)
Deprecated.Serialize an object into JSON.
-
-
-
Method Detail
-
parse
public JsonRpcMapper.JsonRpcRequest parse(String requestBody, ServiceDescription description)
Deprecated.Description copied from interface:JsonRpcMapper
Parses a JSON RPC request. TheServiceDescription
can be used to look up the invoked procedure and learn about its signature.- Specified by:
parse
in interfaceJsonRpcMapper
- Returns:
-
parse
public JsonRpcMapper.JsonRpcResponse parse(String responseBody, Class<?> expectedType)
Deprecated.Description copied from interface:JsonRpcMapper
Parses a JSON RPC response.- Specified by:
parse
in interfaceJsonRpcMapper
- Returns:
-
write
public String write(Object input)
Deprecated.Description copied from interface:JsonRpcMapper
Serialize an object into JSON.- Specified by:
write
in interfaceJsonRpcMapper
- Returns:
-
-