public abstract class NCMBService
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
NCMBService.RequestParams
Innter class for params of request
|
| Modifier and Type | Field and Description |
|---|---|
protected NCMBContext |
mContext
Serivce context
|
protected java.lang.String |
mServicePath
Serivce path of API URL
|
| Modifier and Type | Method and Description |
|---|---|
protected NCMBResponse |
sendRequest(NCMBService.RequestParams params) |
protected NCMBResponse |
sendRequest(java.lang.String url,
java.lang.String type)
sendRequest shortcut
|
protected NCMBResponse |
sendRequest(java.lang.String url,
java.lang.String type,
java.lang.String content)
sendRequest shortcut
|
protected NCMBResponse |
sendRequest(java.lang.String url,
java.lang.String type,
java.lang.String content,
org.json.JSONObject queryString)
send request
|
protected void |
sendRequestAsync(NCMBService.RequestParams params,
com.nifcloud.mbaas.core.NCMBService.ServiceCallback callback)
Send request in asynchronously with parameter bag
|
protected void |
sendRequestAsync(java.lang.String url,
java.lang.String method,
java.lang.String content,
org.json.JSONObject queryString,
com.nifcloud.mbaas.core.NCMBService.ServiceCallback callback)
Send request in asynchronously
|
protected NCMBResponse |
sendRequestFile(java.lang.String url,
java.lang.String method,
java.lang.String fileName,
byte[] fileData,
org.json.JSONObject aclJson)
Send request file
|
protected void |
sendRequestFileAsync(java.lang.String url,
java.lang.String method,
java.lang.String fileName,
byte[] fileData,
org.json.JSONObject aclJson,
RequestApiCallback callback)
Send request file in asynchronously
|
protected NCMBContext mContext
protected java.lang.String mServicePath
protected NCMBResponse sendRequest(java.lang.String url, java.lang.String type) throws NCMBException
url - URLtype - http methodNCMBException - exception from NIFCLOUD mobile backendprotected NCMBResponse sendRequest(java.lang.String url, java.lang.String type, java.lang.String content) throws NCMBException
url - URLtype - http methodcontent - content bodyNCMBException - exception from NIFCLOUD mobile backendprotected NCMBResponse sendRequest(java.lang.String url, java.lang.String type, java.lang.String content, org.json.JSONObject queryString) throws NCMBException
url - URLtype - http methodcontent - content bodyqueryString - query stringNCMBException - exception from NIFCLOUD mobile backendprotected NCMBResponse sendRequestFile(java.lang.String url, java.lang.String method, java.lang.String fileName, byte[] fileData, org.json.JSONObject aclJson) throws NCMBException
url - URLmethod - http methodfileName - file namefileData - file dataaclJson - JSON of aclNCMBException - exception from NIFCLOUD mobile backendprotected NCMBResponse sendRequest(NCMBService.RequestParams params) throws NCMBException
NCMBExceptionprotected void sendRequestAsync(java.lang.String url,
java.lang.String method,
java.lang.String content,
org.json.JSONObject queryString,
com.nifcloud.mbaas.core.NCMBService.ServiceCallback callback)
throws NCMBException
url - URLmethod - http methodcontent - contnt bodyqueryString - query stringcallback - callback on finishedNCMBException - exception from NIFCLOUD mobile backendprotected void sendRequestFileAsync(java.lang.String url,
java.lang.String method,
java.lang.String fileName,
byte[] fileData,
org.json.JSONObject aclJson,
RequestApiCallback callback)
throws NCMBException
url - URLmethod - http methodfileName - file namefileData - file dataaclJson - JSON of aclcallback - callback on finishedNCMBException - exception from NIFCLOUD mobile backendprotected void sendRequestAsync(NCMBService.RequestParams params, com.nifcloud.mbaas.core.NCMBService.ServiceCallback callback) throws NCMBException
params - params for NCMBRequestcallback - callback on finishedNCMBException - exception from NIFCLOUD mobile backend