Package com.rabbitmq.tools.jsonrpc
Interface JsonRpcMapper
- All Known Implementing Classes:
DefaultJsonRpcMapper,JacksonJsonRpcMapper
public interface JsonRpcMapper
Abstraction to handle JSON parsing and generation.
Used by
JsonRpcServer and JsonRpcClient.- Since:
- 5.4.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionparse(String requestBody, ServiceDescription description) Parses a JSON RPC request.Parses a JSON RPC response.Serialize an object into JSON.
-
Method Details
-
parse
Parses a JSON RPC request. TheServiceDescriptioncan be used to look up the invoked procedure and learn about its signature.- Parameters:
requestBody-description-- Returns:
-
parse
Parses a JSON RPC response.- Parameters:
responseBody-expectedType-- Returns:
-
write
Serialize an object into JSON.- Parameters:
input-- Returns:
-