public interface Marshaller
Modifier and Type | Method and Description |
---|---|
String |
marshal(Object requestObject)
Marshal a request object to a JSON string.
|
<T> T |
unmarshal(InputStream responseJson,
Class<T> type)
Unmarshal a JSON stream to a response object.
|
<T> T |
unmarshal(String responseJson,
Class<T> type)
Unmarshal a JSON string to a response object.
|
<T> T unmarshal(String responseJson, Class<T> type)
type
- The response object type.MarshallerSyntaxException
- if the JSON is not a valid representation for an object of the given type<T> T unmarshal(InputStream responseJson, Class<T> type)
type
- The response object type.MarshallerSyntaxException
- if the JSON is not a valid representation for an object of the given typeCopyright © 2024 Worldline Global Collect. All rights reserved.