com.shephertz.app42.paas.sdk.jme.upload
Class UploadResponseBuilder
java.lang.Object
com.shephertz.app42.paas.sdk.jme.App42ResponseBuilder
com.shephertz.app42.paas.sdk.jme.upload.UploadResponseBuilder
public class UploadResponseBuilder
- extends App42ResponseBuilder
UploadResponseBuilder class converts the JSON response retrieved from the
server to the value object i.e User
Method Summary |
void |
buildObjectFromJSONTree(java.lang.Object obj,
org.json.jme.JSONObject jsonObj)
Handling the upload object and file object. |
Upload |
buildResponse(java.lang.String json)
Converts the response in JSON format to the value object i.e Upload |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UploadResponseBuilder
public UploadResponseBuilder()
buildObjectFromJSONTree
public void buildObjectFromJSONTree(java.lang.Object obj,
org.json.jme.JSONObject jsonObj)
throws java.lang.Exception
- Handling the upload object and file object.
- Specified by:
buildObjectFromJSONTree
in class App42ResponseBuilder
- Parameters:
json
- - response in JSON format
- Throws:
java.lang.Exception
buildResponse
public Upload buildResponse(java.lang.String json)
throws java.lang.Exception
- Converts the response in JSON format to the value object i.e Upload
- Parameters:
json
- - response in JSON format
- Returns:
- Upload object filled with json data
- Throws:
java.lang.Exception