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
,
JacksonJsonRpcMapper
JsonRpcMapper.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)
JsonRpcMapper
ServiceDescription
can be used
to look up the invoked procedure and learn about
its signature.parse
in interface JsonRpcMapper
public JsonRpcMapper.JsonRpcResponse parse(String responseBody, Class<?> expectedType)
JsonRpcMapper
parse
in interface JsonRpcMapper
public String write(Object input)
JsonRpcMapper
write
in interface JsonRpcMapper
Copyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.