public interface JsonRpcMapper
JsonRpcServer and JsonRpcClient.| Modifier and Type | Interface and Description |
|---|---|
static class |
JsonRpcMapper.JsonRpcRequest |
static class |
JsonRpcMapper.JsonRpcResponse |
| Modifier and Type | Method and Description |
|---|---|
JsonRpcMapper.JsonRpcResponse |
parse(String responseBody,
Class<?> expectedType)
Parses a JSON RPC response.
|
JsonRpcMapper.JsonRpcRequest |
parse(String requestBody,
ServiceDescription description)
Parses a JSON RPC request.
|
String |
write(Object input)
Serialize an object into JSON.
|
JsonRpcMapper.JsonRpcRequest parse(String requestBody, ServiceDescription description)
ServiceDescription can be used
to look up the invoked procedure and learn about
its signature.requestBody - description - JsonRpcMapper.JsonRpcResponse parse(String responseBody, Class<?> expectedType)
responseBody - expectedType - Copyright © 2021 VMware, Inc. or its affiliates.. All rights reserved.