TTMSFNCCustomCloudBase Class
Base class for cloud service components that manage HTTP request execution, authentication scopes, logging, and progress reporting.
API unit family: TMSFNCCloudBase
Inherits from: TTMSFNCCustomComponent
Syntax
TTMSFNCCustomCloudBase = class(TTMSFNCCustomComponent)
Properties
| Name | Description |
|---|---|
| PostDataBuilder | The shared POST body builder used to construct multipart or URL-encoded request bodies. |
| Request | The template request object whose parameters are used when creating new requests via AddRequest or ExecuteRequest. |
| RequestResult | The result object from the most recently executed request. |
| RunningRequests | The collection of request result objects for all currently executing requests. |
| Scopes | The list of OAuth or API permission scopes requested from the service. |
Methods
| Name | Description |
|---|---|
| AddRequest | Adds a new request to the queue and returns the result object without executing it immediately. |
| CancelRequest | Cancels a specific running request. |
| CancelRequests | Cancels all currently running requests. |
| Curl | Executes a cURL command string and delivers the full request result via the callback. |
| DownloadFileFromURL | Downloads a file from the specified URL and delivers the result via the callback. |
| ExecuteAllRequests | Executes all queued requests that have not yet started. |
| ExecuteRequest | Executes the current Request immediately and returns the result object. |
| GetRequestCount | Returns the number of requests matching the specified filter criteria. |
| GetUploadFileSize | Returns the total size in bytes of the file to be uploaded for the given request. |
| SimpleGETAsyncAsStream | Sends an asynchronous HTTP GET request and delivers the response body as a memory stream via the callback. |
| SimpleGETAsyncAsString | Sends an asynchronous HTTP GET request and delivers the response body as a string via the callback. |
| SimpleGETSyncAsStream | Sends a synchronous HTTP GET request and returns the response body as a memory stream. |
| SimpleGETSyncAsString | Sends a synchronous HTTP GET request and returns the response body as a string. |
| Test | Runs a connectivity or authorization test against the configured service endpoint. |