Package com.rabbitmq.tools.jsonrpc
Class DefaultJsonRpcMapper
java.lang.Object
com.rabbitmq.tools.jsonrpc.DefaultJsonRpcMapper
- All Implemented Interfaces:
JsonRpcMapper
Deprecated.
Simple
JsonRpcMapper
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:
- 5.4.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.rabbitmq.tools.jsonrpc.JsonRpcMapper
JsonRpcMapper.JsonRpcRequest, JsonRpcMapper.JsonRpcResponse
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparse
(String requestBody, ServiceDescription description) Deprecated.Parses a JSON RPC request.Deprecated.Parses a JSON RPC response.Deprecated.Serialize an object into JSON.
-
Constructor Details
-
DefaultJsonRpcMapper
public DefaultJsonRpcMapper()Deprecated.
-
-
Method Details
-
parse
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
- Parameters:
requestBody
-description
-- Returns:
-
parse
Deprecated.Description copied from interface:JsonRpcMapper
Parses a JSON RPC response.- Specified by:
parse
in interfaceJsonRpcMapper
- Parameters:
responseBody
-expectedType
-- Returns:
-
write
Deprecated.Description copied from interface:JsonRpcMapper
Serialize an object into JSON.- Specified by:
write
in interfaceJsonRpcMapper
- Parameters:
input
-- Returns:
-
JacksonJsonRpcMapper
instead