public interface SerializationHandler
Modifier and Type | Method and Description |
---|---|
<T> T |
deserialize(byte[] data,
TypeWrapper<T> type)
Deserialize the response body to the specified type
|
java.lang.String |
getContentType()
Return the content type produced/consumed.
|
<T> byte[] |
serialize(T instance,
TypeWrapper<T> type)
Serialize the request body of the specified type
|
java.lang.String getContentType()
<T> byte[] serialize(T instance, TypeWrapper<T> type) throws AnaplanAPISerializationException
T
- the type of object being serializedinstance
- The instance to serializetype
- The type wrapper containing the typeAnaplanAPISerializationException
<T> T deserialize(byte[] data, TypeWrapper<T> type) throws AnaplanAPISerializationException
T
- the type of object being deserializeddata
- The byte array containing the serialized contenttype
- The type wrapper containing the typeAnaplanAPISerializationException