public class MobileEndpoint
extends java.lang.Object
Constructor and Description |
---|
MobileEndpoint(Synchronization synchronization,
java.lang.String apiName,
java.lang.String endpointPath,
java.lang.Class mobileObjectClass)
Creates a new MobileEndpoint object with specified settings.
|
Modifier and Type | Method and Description |
---|---|
MobileFile |
createFile()
Creates a new MobileFile.
|
MobileObject |
createObject()
Creates a new MobileObject.
|
FetchFileBuilder |
fetchFile(java.lang.String id)
Retrieves a FetchFileBuilder object from the endpoint.
|
FetchObjectBuilder |
fetchObject(java.lang.String id)
Retrieves a FetchObjectBuilder from endpoint with specified ID.
|
FetchCollectionBuilder |
fetchObjects()
Fetches a collection of objects from the endpoint.
|
java.lang.String |
getApiName()
Returns the name of the custom API.
|
java.lang.String |
getEndpointPath()
Returns the path to the API endpoint.
|
protected java.lang.String |
getHeaderValue(java.util.Map headers,
java.lang.String header) |
public MobileEndpoint(Synchronization synchronization, java.lang.String apiName, java.lang.String endpointPath, java.lang.Class mobileObjectClass)
synchronization
- Synchronization Class ObjectapiName
- name of the custom code APIendpointPath
- MobileEndPoint path to the APImobileObjectClass
- MobileObject class objectpublic java.lang.String getApiName()
public java.lang.String getEndpointPath()
public MobileObject createObject()
public MobileFile createFile()
public FetchCollectionBuilder fetchObjects()
public FetchObjectBuilder fetchObject(java.lang.String id)
id
- ID of the MobileObjectpublic FetchFileBuilder fetchFile(java.lang.String id)
id
- ID of the MobileFileprotected java.lang.String getHeaderValue(java.util.Map headers, java.lang.String header)