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