Class TRALParams
Unit
Declaration
type TRALParams = class(TObject)
Description
Collection of TRALParam objects
Hierarchy
- TObject
- TRALParams
Overview
Nested Classes and Records
![]() |
TEnumerator = class(TObject) |
Methods
![]() |
constructor Create; |
![]() |
destructor Destroy; override; |
![]() |
function AddFile(const AParamName: StringRAL; const AFileName: StringRAL): TRALParam; overload; |
![]() |
function AddFile(const AFileName: StringRAL): TRALParam; overload; |
![]() |
function AddParam(const AName: StringRAL; const AValue: StringRAL; AKind: TRALParamKind = rpkNONE): TRALParam; overload; |
![]() |
function AddParam(const AName: StringRAL; AContent: TStream; AKind: TRALParamKind = rpkNONE): TRALParam; overload; |
![]() |
function AddValue(const AContent: StringRAL; AKind: TRALParamKind = rpkNONE): TRALParam; overload; |
![]() |
function AddValue(AContent: TStream; AKind: TRALParamKind = rpkNONE): TRALParam; overload; |
![]() |
function AsJSON: StringRAL; |
![]() |
function AssignParamsListText(AKind: TRALParamKind; const ANameSeparator: StringRAL = '='): StringRAL; |
![]() |
function AssignParamsText(AKind: TRALParamKind; AUrlEncoded: boolean = False; const ANameSeparator: StringRAL = '='; const ALineSeparator: StringRAL = '&'): StringRAL; |
![]() |
function AssignParamsUrl(AKind: TRALParamKind): StringRAL; |
![]() |
function AsString: StringRAL; |
![]() |
function Count: IntegerRAL; overload; |
![]() |
function Count(AKind: TRALParamKind): IntegerRAL; overload; |
![]() |
function Count(AKinds: TRALParamKinds): IntegerRAL; overload; |
![]() |
function DecodeBody(ASource: TStream; const AContentType: StringRAL; const AContentDisposition: StringRAL = ''): TStream; overload; |
![]() |
function DecodeBody(const ASource, AContentType: StringRAL; const AContentDisposition: StringRAL = ''): TStream; overload; |
![]() |
function EncodeBody(var AContentType, AContentDisposition: StringRAL): TStream; |
![]() |
function GetEnumerator: TEnumerator; inline; |
![]() |
function NewParam: TRALParam; |
![]() |
function URLEncodedToList(ASource: StringRAL): TStringList; |
![]() |
function Compress(AStream: TStream): TStream; |
![]() |
function Decompress(AStream: TStream): TStream; overload; |
![]() |
function Decompress(const ASource: StringRAL): StringRAL; overload; |
![]() |
function Decrypt(const ASource: StringRAL): StringRAL; overload; |
![]() |
function Decrypt(AStream: TStream): TStream; overload; |
![]() |
function Encrypt(AStream: TStream): TStream; |
![]() |
function FindBodyNameSeparator(const ASource: StringRAL): StringRAL; |
![]() |
function FindHeaderNameSeparator(const ASource: StringRAL): StringRAL; |
![]() |
function GetBody: TList; |
![]() |
function GetParam(AIndex: IntegerRAL; AKind: TRALParamKind): TRALParam; overload; |
![]() |
function GetParam(AName: StringRAL; AKind: TRALParamKind): TRALParam; overload; |
![]() |
function GetParam(AName: StringRAL): TRALParam; overload; |
![]() |
function GetParam(AIndex: IntegerRAL): TRALParam; overload; |
![]() |
function NextParamInt: IntegerRAL; |
![]() |
function NextParamStr: StringRAL; |
![]() |
procedure AppendBodyParams(ASource: TStrings; AKind: TRALParamKind); |
![]() |
procedure AppendParams(ASource: TStrings; AKind: TRALParamKind); overload; |
![]() |
procedure AppendParams(ASource: TStringList; AKind: TRALParamKind); overload; |
![]() |
procedure AppendParamsListText(ASource: StringRAL; AKind: TRALParamKind; ANameSeparator: StringRAL = ''); |
![]() |
procedure AppendParamsText(AText: StringRAL; AKind: TRALParamKind; const ANameSeparator: StringRAL = '='; const ALineSeparator: StringRAL = '&'); |
![]() |
procedure AppendParamsUri(AFullURI, APartialURI: StringRAL; AKind: TRALParamKind); |
![]() |
procedure AppendParamsUrl(AUrlQuery: StringRAL; AKind: TRALParamKind); |
![]() |
procedure AssignParams(ADest: TStrings; AKind: TRALParamKind; ASeparator: StringRAL = '='); overload; |
![]() |
procedure AssignParams(ADest: TStringList; AKind: TRALParamKind; ASeparator: StringRAL = '='); overload; |
![]() |
procedure ClearParams(AKind: TRALParamKind); overload; |
![]() |
procedure ClearParams; overload; |
![]() |
procedure DecodeFields(const ASource: StringRAL; AKind: TRALParamKind = rpkFIELD); |
![]() |
procedure DelParam(const AName: StringRAL); overload; |
![]() |
procedure DelParam(const AName: StringRAL; AKind: TRALParamKind); overload; |
![]() |
procedure AppendParamLine(const ALine: StringRAL; const ANameSeparator: StringRAL; AKind: TRALParamKind); |
![]() |
procedure OnFormBodyData(Sender: TObject; AFormData: TRALMultipartFormData; var AFreeData: Boolean); |
Properties
![]() |
property Body: TList read GetBody; |
![]() |
property CompressType: TRALCompressType read FCompressType write FCompressType; |
![]() |
property ContentDispositionInline: Boolean read FContentDispositionInline
write FContentDispositionInline; |
![]() |
property CriptoOptions: TRALCriptoOptions read FCriptoOptions write FCriptoOptions; |
![]() |
property Get[AName:StringRAL]: TRALParam read GetParam; |
![]() |
property GetKind[AName:StringRAL;AKind:TRALParamKind]: TRALParam read GetParam; |
![]() |
property Index[AIndex:IntegerRAL]: TRALParam read GetParam; |
![]() |
property IndexKind[AIndex:IntegerRAL;AKind:TRALParamKind]: TRALParam read GetParam; |
Description
Methods
![]() |
constructor Create; |
![]() |
destructor Destroy; override; |
![]() |
function AddFile(const AParamName: StringRAL; const AFileName: StringRAL): TRALParam; overload; |
|
Locate the RALParam with the given AParamName and fills it with a file from the AFileName. | |
![]() |
function AddFile(const AFileName: StringRAL): TRALParam; overload; |
|
Creates a new RALParam in the internal list and fills it with a file from the AFileName. | |
![]() |
function AddParam(const AName: StringRAL; const AValue: StringRAL; AKind: TRALParamKind = rpkNONE): TRALParam; overload; |
|
AddParam is used to include a TRALParam Object into the internal list. | |
![]() |
function AddParam(const AName: StringRAL; AContent: TStream; AKind: TRALParamKind = rpkNONE): TRALParam; overload; |
|
| |
![]() |
function AddValue(const AContent: StringRAL; AKind: TRALParamKind = rpkNONE): TRALParam; overload; |
|
AddValue creates a new RALParam in the internal list and fills it with the given parameters. | |
![]() |
function AddValue(AContent: TStream; AKind: TRALParamKind = rpkNONE): TRALParam; overload; |
|
| |
![]() |
function AsJSON: StringRAL; |
|
returns all the params in a JSON UTF8string format. | |
![]() |
function AssignParamsListText(AKind: TRALParamKind; const ANameSeparator: StringRAL = '='): StringRAL; |
|
Returns an UTF8 String with RALParams matching 'AKind'. | |
![]() |
function AssignParamsText(AKind: TRALParamKind; AUrlEncoded: boolean = False; const ANameSeparator: StringRAL = '='; const ALineSeparator: StringRAL = '&'): StringRAL; |
|
Returns an UTF8 String with RALParams matching 'AKind'. Can accept a different Line Separator than CRLF. | |
![]() |
function AssignParamsUrl(AKind: TRALParamKind): StringRAL; |
|
Returns an UTF8 String with RALParams matching 'AKind' using default URL separators. | |
![]() |
function AsString: StringRAL; |
|
returns all the params in a comma separated UTF8string. | |
![]() |
function Count: IntegerRAL; overload; |
|
Returns total ammount of RALParams. | |
![]() |
function Count(AKind: TRALParamKind): IntegerRAL; overload; |
|
Returns total ammount of RALParams matching AKind. | |
![]() |
function Count(AKinds: TRALParamKinds): IntegerRAL; overload; |
|
Returns total ammount of RALParams matching multiple kinds. | |
![]() |
function DecodeBody(ASource: TStream; const AContentType: StringRAL; const AContentDisposition: StringRAL = ''): TStream; overload; |
|
Returns a TStream with the filtered Stream body contents. | |
![]() |
function DecodeBody(const ASource, AContentType: StringRAL; const AContentDisposition: StringRAL = ''): TStream; overload; |
|
Returns a TStream with the filtered String body contents. | |
![]() |
function EncodeBody(var AContentType, AContentDisposition: StringRAL): TStream; |
|
Returns a TStream with all RALParams that matches 'Body' Kind. | |
![]() |
function GetEnumerator: TEnumerator; inline; |
|
Retuns the internal Enumerator type to allow for..in loops | |
![]() |
function NewParam: TRALParam; |
|
creates and returns an empty param for a more flexible way of coding. | |
![]() |
function URLEncodedToList(ASource: StringRAL): TStringList; |
|
converts a HTML encoded URL into a TStringList. | |
![]() |
function Compress(AStream: TStream): TStream; |
|
Compresses the input stream into a TStream. | |
![]() |
function Decompress(AStream: TStream): TStream; overload; |
|
Decompresses the input stream into a TStream. | |
![]() |
function Decompress(const ASource: StringRAL): StringRAL; overload; |
|
Decompresses the input string into an UTF8 String. | |
![]() |
function Decrypt(const ASource: StringRAL): StringRAL; overload; |
|
Decrypts the input string into an UTF8 String. | |
![]() |
function Decrypt(AStream: TStream): TStream; overload; |
|
Decrypts the input stream into a TStream. | |
![]() |
function Encrypt(AStream: TStream): TStream; |
|
Encrypts the whole class instead of each individual object. | |
![]() |
function FindBodyNameSeparator(const ASource: StringRAL): StringRAL; |
![]() |
function FindHeaderNameSeparator(const ASource: StringRAL): StringRAL; |
|
Results either = or : if found on the input text. | |
![]() |
function GetBody: TList; |
![]() |
function GetParam(AIndex: IntegerRAL; AKind: TRALParamKind): TRALParam; overload; |
![]() |
function GetParam(AName: StringRAL; AKind: TRALParamKind): TRALParam; overload; |
![]() |
function GetParam(AName: StringRAL): TRALParam; overload; |
![]() |
function GetParam(AIndex: IntegerRAL): TRALParam; overload; |
![]() |
function NextParamInt: IntegerRAL; |
|
Moves to the next param and returns its index. | |
![]() |
function NextParamStr: StringRAL; |
|
Moves to the next param and returns its internal name. | |
![]() |
procedure AppendBodyParams(ASource: TStrings; AKind: TRALParamKind); |
|
Used to append a list of params (ASource) from the body to the current params list. | |
![]() |
procedure AppendParams(ASource: TStrings; AKind: TRALParamKind); overload; |
|
Used to append a list of params (ASource) to the current params list. | |
![]() |
procedure AppendParams(ASource: TStringList; AKind: TRALParamKind); overload; |
|
Used to append a list of params (ASource) to the current params list. | |
![]() |
procedure AppendParamsListText(ASource: StringRAL; AKind: TRALParamKind; ANameSeparator: StringRAL = ''); |
|
Used to append a list of params in a string to the current params list. | |
![]() |
procedure AppendParamsText(AText: StringRAL; AKind: TRALParamKind; const ANameSeparator: StringRAL = '='; const ALineSeparator: StringRAL = '&'); |
|
Appends params based on a string 'AText'. | |
![]() |
procedure AppendParamsUri(AFullURI, APartialURI: StringRAL; AKind: TRALParamKind); |
|
Appends params based on the full URL given separated by '/'. | |
![]() |
procedure AppendParamsUrl(AUrlQuery: StringRAL; AKind: TRALParamKind); |
|
Appends params based on the full URL given. | |
![]() |
procedure AssignParams(ADest: TStrings; AKind: TRALParamKind; ASeparator: StringRAL = '='); overload; |
|
Fills the 'ADest' Strings with RALParams matching 'AKind'. | |
![]() |
procedure AssignParams(ADest: TStringList; AKind: TRALParamKind; ASeparator: StringRAL = '='); overload; |
|
Fills the 'ADest' StringList with RALParams matching 'AKind'. | |
![]() |
procedure ClearParams(AKind: TRALParamKind); overload; |
|
Clears all params matching AKind. | |
![]() |
procedure ClearParams; overload; |
|
Clears all params. | |
![]() |
procedure DecodeFields(const ASource: StringRAL; AKind: TRALParamKind = rpkFIELD); |
|
Decode and append RALParams based on the ASource input. | |
![]() |
procedure DelParam(const AName: StringRAL); overload; |
|
Removes a RALParam matching the given AName. | |
![]() |
procedure DelParam(const AName: StringRAL; AKind: TRALParamKind); overload; |
|
Removes a RALParam matching the given AName and AKind. | |
![]() |
procedure AppendParamLine(const ALine: StringRAL; const ANameSeparator: StringRAL; AKind: TRALParamKind); |
|
Decodes the ALine URL and adds it to the param list. | |
![]() |
procedure OnFormBodyData(Sender: TObject; AFormData: TRALMultipartFormData; var AFreeData: Boolean); |
|
Event to be called during the processing of FormData. | |
Properties
![]() |
property Body: TList read GetBody; |
|
Grabs only the | |
![]() |
property CompressType: TRALCompressType read FCompressType write FCompressType; |
|
Which algorithm to compress the content of params. | |
![]() |
property ContentDispositionInline: Boolean read FContentDispositionInline
write FContentDispositionInline; |
![]() |
property CriptoOptions: TRALCriptoOptions read FCriptoOptions write FCriptoOptions; |
|
Configuration of the cryptography used on params for a secure P2P traffic. | |
![]() |
property Get[AName:StringRAL]: TRALParam read GetParam; |
|
Grabs a param by its name. | |
![]() |
property GetKind[AName:StringRAL;AKind:TRALParamKind]: TRALParam read GetParam; |
|
Grabs a param by its name and kind since you can have multiple kinds with same name. | |
![]() |
property Index[AIndex:IntegerRAL]: TRALParam read GetParam; |
|
Grabs a param by its | |
![]() |
property IndexKind[AIndex:IntegerRAL;AKind:TRALParamKind]: TRALParam read GetParam; |
|
Grabs a param by its index on the TRALParams list. | |
GitHub Repository
Generated by PasDoc 0.16.0.


