com.myjeeva.digitalocean
Class Utils
java.lang.Object
com.myjeeva.digitalocean.Utils
- All Implemented Interfaces:
- Constants
public final class Utils
- extends Object
- implements Constants
Utility methods for DigitalOcean API Client
- Author:
- Jeevanandam M. ([email protected])
Fields inherited from interface com.myjeeva.digitalocean.Constants |
HTTPS_SCHEME, PARAM_API_KEY, PARAM_CLIENT_ID, PARAM_DATA, PARAM_IMAGE_ID, PARAM_IP_ADDRESS, PARAM_NAME, PARAM_PORT, PARAM_PRIORITY, PARAM_RECORD_TYPE, PARAM_REGION_ID, PARAM_SIDE_ID, PARAM_SSH_KEY_IDS, PARAM_WEIGHT, STATUS, UTF_8 |
Constructor Summary |
Utils()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utils
public Utils()
getGson
public static com.google.gson.Gson getGson()
byClass
public static Object byClass(com.google.gson.JsonElement jsonElement,
Class<?> clazz)
byType
public static Object byType(com.google.gson.JsonElement jsonElement,
Type type)
readInputStream
public static String readInputStream(InputStream input)
throws IOException
- Throws:
IOException
prepareDomainRecordParams
public static Map<String,String> prepareDomainRecordParams(DomainRecord domainRecord)
getDropletListType
public static Type getDropletListType()
getImageListType
public static Type getImageListType()
getRegionListType
public static Type getRegionListType()
getSizeListType
public static Type getSizeListType()
getDomainListType
public static Type getDomainListType()
getDomainRecordListType
public static Type getDomainRecordListType()