com.citrix.sharefile.api.interfaces.ISFApiExecuteQuery Maven / Gradle / Ivy
package com.citrix.sharefile.api.interfaces;
import com.citrix.sharefile.api.exceptions.SFInvalidStateException;
import com.citrix.sharefile.api.exceptions.SFNotAuthorizedException;
import com.citrix.sharefile.api.exceptions.SFOAuthTokenRenewException;
import com.citrix.sharefile.api.exceptions.SFOtherException;
import com.citrix.sharefile.api.exceptions.SFServerException;
/**
* Implementations of this interface provides the bare-minimum functions to make the V3 API server calls and read + parse their responses.
*
These calls are blocking calls so that the application can use its own thread management.
*
*
The calls to be made are in this sequence:
*
*
*
executeBlockingQuery();
*
callresponseListeners();
*
*
*
Typical usage in Android AsyncTask would be :
*
*
doInBackgrond()
*
{
*
executeBlockingQuery();
*
}
*
*
onPostExecute()
*
{
*
callresponseListeners();
*
}
*
*/
public interface ISFApiExecuteQuery
{
public T executeBlockingQuery() throws SFServerException, SFInvalidStateException, SFOAuthTokenRenewException, SFNotAuthorizedException, SFOtherException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy