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

FileUploadNewRequest

class FileUploadNewRequest :AbstractRequest<GSDApi,ResponseObject>

Created by PJablonski on 21.08.2017.

Constructors

Name Summary
<init> FileUploadNewRequest(keyProvider:KeyProvider, interceptor: Interceptor, apiClass:Class<GSDApi>, accessData:AccessData, objectId:String, fileContent:FileContent, handleSSL:Boolean)
Created by PJablonski on 21.08.2017.

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<ResponseObject>
offlineAutoSave fun offlineAutoSave():Boolean
onResponse fun onResponse(call: Call<ResponseObject>, response: Response<ResponseObject>):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
fillHeader open fun fillHeader():Unit
getHeaders fun getHeaders():Map<String,String>
hasSessionId fun hasSessionId():Boolean
onFailure open fun onFailure(call: Call<K>, t:Throwable):Unit
onRetryFail open fun onRetryFail():Unit
renewSession fun renewSession(secureAuthentication:SecureAuthentication, resultCallback:NetDataLoadCallback<AuthorizationResponse>):Unit
setDataLoadCallback open fun setDataLoadCallback(externalCallback:NetDataLoadCallback<K>):Unit

Companion Object Properties

Name Summary
FILE_NAME const val FILE_NAME:String
OCTET_STREAM_CONTENT_TYPE const val OCTET_STREAM_CONTENT_TYPE:String