mmRestAPI
Class MMRestAPI
java.lang.Object
mmRestAPI.MMAbstractRestAPI
mmRestAPI.MMRestAPI
public class MMRestAPI
- extends MMAbstractRestAPI
Method Summary |
void |
addFindCondition(MMAbstractRestAPI.FindCondition condition,
java.lang.String key,
int value)
|
void |
addFindCondition(MMAbstractRestAPI.FindCondition condition,
java.lang.String key,
java.lang.Long value)
|
void |
addFindCondition(MMAbstractRestAPI.FindCondition condition,
java.lang.String key,
java.lang.String value)
Add a specific query condition for a Find (i.e. |
MMAbstractRestAPI |
newInstance()
Create a new instance of a REST API call; each time to make a request, you should get a new instance using this funciton. |
void |
sendRequestAsync(java.lang.String dataJsonString,
MMRestApiCallback callback)
Send the prepared request asynchronously to the server. |
java.util.List<java.util.HashMap<java.lang.String,java.lang.Object>> |
sendRequestSync(java.lang.String dataJsonString,
org.json.JSONArray jsonArrayReference)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MMRestAPI
public MMRestAPI()
sendRequestSync
public java.util.List<java.util.HashMap<java.lang.String,java.lang.Object>> sendRequestSync(java.lang.String dataJsonString,
org.json.JSONArray jsonArrayReference)
addFindCondition
public void addFindCondition(MMAbstractRestAPI.FindCondition condition,
java.lang.String key,
java.lang.String value)
- Description copied from class:
MMAbstractRestAPI
- Add a specific query condition for a Find (i.e. query) REST API request.
Be sure to use the correct function signature.
- Specified by:
addFindCondition
in class MMAbstractRestAPI
addFindCondition
public void addFindCondition(MMAbstractRestAPI.FindCondition condition,
java.lang.String key,
int value)
- Specified by:
addFindCondition
in class MMAbstractRestAPI
addFindCondition
public void addFindCondition(MMAbstractRestAPI.FindCondition condition,
java.lang.String key,
java.lang.Long value)
- Specified by:
addFindCondition
in class MMAbstractRestAPI
sendRequestAsync
public void sendRequestAsync(java.lang.String dataJsonString,
MMRestApiCallback callback)
- Description copied from class:
MMAbstractRestAPI
- Send the prepared request asynchronously to the server.
- Specified by:
sendRequestAsync
in class MMAbstractRestAPI
- Parameters:
dataJsonString
- the data to be sent in the request; in format of JSON stringcallback
- the callback to get the return results from the server
newInstance
public MMAbstractRestAPI newInstance()
- Description copied from class:
MMAbstractRestAPI
- Create a new instance of a REST API call; each time to make a request, you should get a new instance using this funciton.
- Specified by:
newInstance
in class MMAbstractRestAPI
- Returns:
- a new instance of the request instance