Class TRALParam

Unit

Declaration

type TRALParam = class(TObject)

Description

This is the object of all the data that is traded between request and response. each RALParam has a name, a kind and a content that can either be a text (String) or a bytearray (Stream)

Hierarchy

Overview

Methods

Public constructor Create;
Public destructor Destroy; override;
Public function IsNilOrEmpty: Boolean;
Public function SaveToStream: TStream; overload;
Public function Size: Int64;
Protected function GetAsBoolean: Boolean;
Protected function GetAsDouble: DoubleRAL;
Protected function GetAsInt64: Int64;
Protected function GetAsInteger: IntegerRAL;
Protected function GetAsStream: TStream;
Protected function GetAsString: StringRAL;
Protected function GetContentDisposition: StringRAL;
Protected function GetContentSize: Int64RAL;
Public procedure Clone(ASource: TRALParam);
Public procedure OpenFile(const AFileName: StringRAL);
Public procedure SaveToFile; overload;
Public procedure SaveToFile(AFolderName, AFileName: StringRAL); overload;
Public procedure SaveToFile(const AFileName: StringRAL); overload;
Public procedure SaveToStream(AStream: TStream); overload;
Protected procedure SetAsBoolean(const AValue: Boolean);
Protected procedure SetAsDouble(const AValue: DoubleRAL);
Protected procedure SetAsInt64(const AValue: Int64);
Protected procedure SetAsInteger(const AValue: IntegerRAL);
Protected procedure SetAsStream(const AValue: TStream);
Protected procedure SetAsString(const AValue: StringRAL);
Protected procedure SetContentDisposition(AValue: StringRAL);

Properties

Public property AsBoolean: Boolean read GetAsBoolean write SetAsBoolean;
Public property AsDouble: DoubleRAL read GetAsDouble write SetAsDouble;
Public property AsInt64: Int64 read GetAsInt64 write SetAsInt64;
Public property AsInteger: IntegerRAL read GetAsInteger write SetAsInteger;
Public property AsStream: TStream read GetAsStream write SetAsStream;
Public property AsString: StringRAL read GetAsString write SetAsString;
Public property Content: TStream read FContent;
Public property ContentDisposition: StringRAL read GetContentDisposition write SetContentDisposition;
Public property ContentDispositionInline: Boolean read FContentDispositionInline write FContentDispositionInline;
Public property ContentSize: Int64RAL read GetContentSize;
Public property ContentType: StringRAL read FContentType write FContentType;
Public property FileName: StringRAL read FFileName write FFileName;
Public property Kind: TRALParamKind read FKind write FKind;
Public property ParamName: StringRAL read FParamName write FParamName;

Description

Methods

Public constructor Create;
 
Public destructor Destroy; override;
 
Public function IsNilOrEmpty: Boolean;
 
Public function SaveToStream: TStream; overload;
 
Public function Size: Int64;
 
Protected function GetAsBoolean: Boolean;
 
Protected function GetAsDouble: DoubleRAL;
 
Protected function GetAsInt64: Int64;
 
Protected function GetAsInteger: IntegerRAL;
 
Protected function GetAsStream: TStream;
 
Protected function GetAsString: StringRAL;
 
Protected function GetContentDisposition: StringRAL;
 
Protected function GetContentSize: Int64RAL;
 
Public procedure Clone(ASource: TRALParam);
 
Public procedure OpenFile(const AFileName: StringRAL);

Clears and assign a file to the FContent.

Public procedure SaveToFile; overload;

Saves FContent to the default executable location.

Public procedure SaveToFile(AFolderName, AFileName: StringRAL); overload;

Save FContent with the given Filename and the foldername.

Public procedure SaveToFile(const AFileName: StringRAL); overload;

Save FContent with the given Filename.

Public procedure SaveToStream(AStream: TStream); overload;
 
Protected procedure SetAsBoolean(const AValue: Boolean);
 
Protected procedure SetAsDouble(const AValue: DoubleRAL);
 
Protected procedure SetAsInt64(const AValue: Int64);
 
Protected procedure SetAsInteger(const AValue: IntegerRAL);
 
Protected procedure SetAsStream(const AValue: TStream);
 
Protected procedure SetAsString(const AValue: StringRAL);
 
Protected procedure SetContentDisposition(AValue: StringRAL);
 

Properties

Public property AsBoolean: Boolean read GetAsBoolean write SetAsBoolean;
 
Public property AsDouble: DoubleRAL read GetAsDouble write SetAsDouble;
 
Public property AsInt64: Int64 read GetAsInt64 write SetAsInt64;
 
Public property AsInteger: IntegerRAL read GetAsInteger write SetAsInteger;
 
Public property AsStream: TStream read GetAsStream write SetAsStream;
 
Public property AsString: StringRAL read GetAsString write SetAsString;
 
Public property Content: TStream read FContent;
 
Public property ContentDisposition: StringRAL read GetContentDisposition write SetContentDisposition;
 
Public property ContentDispositionInline: Boolean read FContentDispositionInline write FContentDispositionInline;
 
Public property ContentSize: Int64RAL read GetContentSize;
 
Public property ContentType: StringRAL read FContentType write FContentType;
 
Public property FileName: StringRAL read FFileName write FFileName;
 
Public property Kind: TRALParamKind read FKind write FKind;
 
Public property ParamName: StringRAL read FParamName write FParamName;
 


GitHub Repository
Generated by PasDoc 0.16.0.