RequestOptions

open class RequestOptions

Options for processing of data requests. If request options are used for {@link com.sap.cloud.mobile.kotlin.odata.RequestOptions#repeatable(com.sap.cloud.mobile.kotlin.odata.GuidValue, com.sap.cloud.mobile.kotlin.odata.GlobalDateTime) RequestOptions.repeatable} requests, a new request options object should be used for each distinct request (or the repeatability properties should be reset before object re-use). The repeated execution of a failed request should re-use the original request options object without {@link com.sap.cloud.mobile.kotlin.odata.RequestOptions#repeatable(com.sap.cloud.mobile.kotlin.odata.GuidValue, com.sap.cloud.mobile.kotlin.odata.GlobalDateTime) RequestOptions.repeatable} being reset beforehand.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var changeSet: String?
Link copied to clipboard
open var customTag: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var uploadGroup: String?
Link copied to clipboard

Functions

Link copied to clipboard

Set the {@link com.sap.cloud.mobile.kotlin.odata.RequestOptions#cancelToken RequestOptions.cancelToken} and return this options object.

Link copied to clipboard
open fun copy(): RequestOptions

Return a new (mutable) request options object that is a copy of this request options object.

Link copied to clipboard
open fun custom(tag: String): RequestOptions

Set the {@link com.sap.cloud.mobile.kotlin.odata.RequestOptions#customTag RequestOptions.customTag} and return this options object.

Link copied to clipboard

Set the {@link com.sap.cloud.mobile.kotlin.odata.RequestOptions#joinChangeSet RequestOptions.joinChangeSet} to the provided 'entity' and return this options object. The provided entity should elsewhere be specified for a createEntity / updateEntity / deleteEntity as the first request within a change set.

Link copied to clipboard

Set the {@link com.sap.cloud.mobile.kotlin.odata.RequestOptions#canCombineRequests RequestOptions.canCombineRequests} property to false and return this options object.

Link copied to clipboard

Set the {@link com.sap.cloud.mobile.kotlin.odata.RequestOptions#mustRetainCreates RequestOptions.mustRetainCreates} property to false and return this options object.

Link copied to clipboard
open fun repeatable(requestID: GuidValue, firstSent: GlobalDateTime): RequestOptions

Set the {@link com.sap.cloud.mobile.kotlin.odata.RequestOptions#repeatabilityRequestID RequestOptions.repeatabilityRequestID} and {@link com.sap.cloud.mobile.kotlin.odata.RequestOptions#repeatabilityFirstSent RequestOptions.repeatabilityFirstSent} and return this options object.

Link copied to clipboard

Set the {@link com.sap.cloud.mobile.kotlin.odata.RequestOptions#changeSet RequestOptions.changeSet} and return this options object.

Link copied to clipboard

Set the {@link com.sap.cloud.mobile.kotlin.odata.RequestOptions#updateMode RequestOptions.updateMode} and return this options object.

Link copied to clipboard

Set the {@link com.sap.cloud.mobile.kotlin.odata.RequestOptions#uploadGroup RequestOptions.uploadGroup} and return this options object.

Link copied to clipboard

Set {@link com.sap.cloud.mobile.kotlin.odata.RequestOptions#useBatchRequest RequestOptions.useBatchRequest} to true and this options object.