Package com.onlinepayments.json
Class DefaultMarshaller
java.lang.Object
com.onlinepayments.json.DefaultMarshaller
- All Implemented Interfaces:
Marshaller
Marshaller implementation based on Gson.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMarshal a request object to a JSON string.<T> Tunmarshal(InputStream responseJson, Class<T> type) Unmarshal a JSON stream to a response object.<T> TUnmarshal a JSON string to a response object.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DefaultMarshaller
protected DefaultMarshaller()
-
-
Method Details
-
marshal
Description copied from interface:MarshallerMarshal a request object to a JSON string.- Specified by:
marshalin interfaceMarshaller
-
unmarshal
Description copied from interface:MarshallerUnmarshal a JSON string to a response object.- Specified by:
unmarshalin interfaceMarshaller- Parameters:
type- The response object type.
-
unmarshal
Description copied from interface:MarshallerUnmarshal a JSON stream to a response object.- Specified by:
unmarshalin interfaceMarshaller- Parameters:
type- The response object type.
-