Package org.apache.fineract.client.util
Class JSON.GsonResponseBodyConverterToString<T>
java.lang.Object
org.apache.fineract.client.util.JSON.GsonResponseBodyConverterToString<T>
- All Implemented Interfaces:
retrofit2.Converter<okhttp3.ResponseBody,T>
- Enclosing class:
JSON
public static class JSON.GsonResponseBodyConverterToString<T>
extends Object
implements retrofit2.Converter<okhttp3.ResponseBody,T>
This wrapper is to take care of this case: when the deserialization fails due to JsonParseException and the
expected type is String, then just return the body string.
-
Nested Class Summary
Nested classes/interfaces inherited from interface retrofit2.Converter
retrofit2.Converter.Factory -
Method Summary
-
Method Details
-
convert
- Specified by:
convertin interfaceretrofit2.Converter<okhttp3.ResponseBody,T> - Throws:
IOException
-