JacksonJsonRpcMapper insteadpublic class DefaultJsonRpcMapper extends Object implements JsonRpcMapper
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
JsonRpcMapper,
JacksonJsonRpcMapperJsonRpcMapper.JsonRpcRequest, JsonRpcMapper.JsonRpcResponse| Constructor and Description |
|---|
DefaultJsonRpcMapper()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
JsonRpcMapper.JsonRpcResponse |
parse(String responseBody,
Class<?> expectedType)
Deprecated.
Parses a JSON RPC response.
|
JsonRpcMapper.JsonRpcRequest |
parse(String requestBody,
ServiceDescription description)
Deprecated.
Parses a JSON RPC request.
|
String |
write(Object input)
Deprecated.
Serialize an object into JSON.
|
public JsonRpcMapper.JsonRpcRequest parse(String requestBody, ServiceDescription description)
JsonRpcMapperServiceDescription can be used
to look up the invoked procedure and learn about
its signature.parse in interface JsonRpcMapperpublic JsonRpcMapper.JsonRpcResponse parse(String responseBody, Class<?> expectedType)
JsonRpcMapperparse in interface JsonRpcMapperpublic String write(Object input)
JsonRpcMapperwrite in interface JsonRpcMapperCopyright © 2021 VMware, Inc. or its affiliates.. All rights reserved.