public class FetchFileBuilder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
execute(MobileEndpointCallback callback)
Executes the fetch against OMCe and returns the results.
|
FetchFileBuilder |
fromService()
When invoked causes the MobileFile to be refreshed from the service.
|
java.lang.String |
getId()
Returns the ID of the current MobileFile in the API endpoint.
|
SyncPolicy |
getPolicy()
Returns the syncPolicy which the current FetchFileBuilder is using to fetch objects.
|
boolean |
isFromService()
Returns true if the current FetchFileBuilder will fetch from the service.
|
FetchFileBuilder |
withHeader(java.lang.String name,
java.lang.String value)
Specifies the HTTP header.
|
FetchFileBuilder |
withPolicy(SyncPolicy policy)
Specifies a SyncPolicy to use.
|
public FetchFileBuilder withHeader(java.lang.String name, java.lang.String value)
name
- The name of the HTTP Headervalue
- The value of the HTTP Headerpublic FetchFileBuilder fromService()
public boolean isFromService()
public SyncPolicy getPolicy()
public FetchFileBuilder withPolicy(SyncPolicy policy)
policy
- The SyncPolicy to usepublic java.lang.String getId()
public void execute(MobileEndpointCallback callback) throws java.lang.Exception
callback
- Callback that gives the resultjava.lang.Exception
- when callback is null