com.shephertz.app42.paas.sdk.jme.storage
Class StorageResponseBuilder
java.lang.Object
com.shephertz.app42.paas.sdk.jme.App42ResponseBuilder
com.shephertz.app42.paas.sdk.jme.storage.StorageResponseBuilder
public class StorageResponseBuilder
- extends App42ResponseBuilder
StorageResponseBuilder class converts the JSON response retrieved from the
server to the value object i.e Storage
Method Summary |
void |
buildObjectFromJSONTree(java.lang.Object obj,
org.json.jme.JSONObject jsonObj)
Handling the storage object and JSONDocument object. |
Storage |
buildResponse(java.lang.String json)
Converts the response in JSON format to the value object i.e Storage |
static void |
main(java.lang.String[] args)
Main method creating a new Storage and JSONDocument object resulting into
a response that has to be displayed. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StorageResponseBuilder
public StorageResponseBuilder()
buildObjectFromJSONTree
public void buildObjectFromJSONTree(java.lang.Object obj,
org.json.jme.JSONObject jsonObj)
throws java.lang.Exception
- Handling the storage object and JSONDocument object.
- Specified by:
buildObjectFromJSONTree
in class App42ResponseBuilder
- Parameters:
json
- - response in JSON format
- Throws:
java.lang.Exception
buildResponse
public Storage buildResponse(java.lang.String json)
throws java.lang.Exception
- Converts the response in JSON format to the value object i.e Storage
- Parameters:
json
- - response in JSON format
- Returns:
- Storage object filled with json data
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Main method creating a new Storage and JSONDocument object resulting into
a response that has to be displayed.
- Throws:
java.lang.Exception