gsdsdk / com.gsd.software.sdk.netconnector.files.request / FileDownloadRequest

FileDownloadRequest

class FileDownloadRequest :AbstractRequest<GSDApi, ResponseBody>, Callback<ResponseBody>

Created by PJablonski on 21.08.2017.

Constructors

Name Summary
<init> FileDownloadRequest(keyProvider:KeyProvider, apiClass:Class<GSDApi>, accessData:AccessData, directory:String, name:String?, handleSSL:Boolean)
Created by PJablonski on 21.08.2017.

Properties

Name Summary
shouldCancel var shouldCancel:Boolean

Inherited Properties

Name Summary
accessData var accessData:AccessData
apiCall var apiCall:T?
externalCallback var externalCallback:NetDataLoadCallback<K>?
gson var gson: Gson?
handleSSL var handleSSL:Boolean
headers var headers:HashMap<String,String>
id val id:String
internalCallback var internalCallback:NetDataLoadCallback<K>?

Functions

Name Summary
automaticallyRenewSession fun automaticallyRenewSession():Boolean
definition fun definition(): Call<ResponseBody>
fillHeader fun fillHeader():Unit
offlineAutoSave fun offlineAutoSave():Boolean
onFailure fun onFailure(call: Call<ResponseBody>, t:Throwable):Unit
onResponse fun onResponse(call: Call<ResponseBody>, response: Response<ResponseBody>):Unit
onRetryFail fun onRetryFail():Unit
setFileDownloadCallback fun setFileDownloadCallback(callback:FileCallback):Unit
setFileOid fun setFileOid(fileOid:String):Unit

Inherited Functions

Name Summary
addHeader open fun addHeader(name:String, value:String):Unit
databaseOpAfterSuccess open fun databaseOpAfterSuccess(gsdDao:GSDDao):Unit
execute open fun execute():Unit
getHeaders fun getHeaders():Map<String,String>
hasSessionId fun hasSessionId():Boolean
renewSession fun renewSession(secureAuthentication:SecureAuthentication, resultCallback:NetDataLoadCallback<AuthorizationResponse>):Unit
setDataLoadCallback open fun setDataLoadCallback(externalCallback:NetDataLoadCallback<K>):Unit