Package com.targomo.client.api.util
Class IOUtil
java.lang.Object
com.targomo.client.api.util.IOUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TcloneObjects(T object, Class<T> clazz) Deep cloning of an POJO object.static StringDecode a URL-encoded Stringstatic StringConvert a String to URL-encoded versionstatic StringgetResultString(javax.ws.rs.core.Response response) Convert get body from HTTP response and remove callback field
-
Method Details
-
cloneObjects
Deep cloning of an POJO object.- Type Parameters:
T- type of the object- Parameters:
object- input objectclazz- specified object class- Returns:
- clone of the object
-
decode
Decode a URL-encoded String- Parameters:
string- URL-encoded string- Returns:
- Decoded string
-
encode
Convert a String to URL-encoded version- Parameters:
string- input String- Returns:
- URL-encoded version of string
-
getResultString
Convert get body from HTTP response and remove callback field- Parameters:
response- HTTP response- Returns:
- Response body without callback
-