THTTPDocument

From Ultibo.org
Jump to: navigation, search

Return to Unit HTTP


Description


To be documented

Class definitions



THTTPDocument = class(TListObject)

public
constructor Create;  
destructor Destroy; override;  
private
FLock:TCriticalSectionHandle;  
 
FName:String;  
FHash:LongWord;  
FFlags:LongWord;  
 
FAliases:TLinkedList;  
 
FOnGet:THTTPDocumentEvent;  
FOnHead:THTTPDocumentEvent;  
FOnPost:THTTPDocumentEvent;  
FOnPut:THTTPDocumentEvent;  
 
function GetName:String;  
procedure SetName(const AName:String);  
procedure SetFlags(AFlags:LongWord);  
 
function GetIsDefault:Boolean;  
procedure SetIsDefault(AIsDefault:Boolean);  
function GetIsFolder:Boolean;  
procedure SetIsFolder(AIsFolder:Boolean);  
function GetIsSubtree:Boolean;  
procedure SetIsSubtree(AIsSubtree:Boolean);  
function GetIsExtension:Boolean;  
procedure SetIsExtension(AIsExtension:Boolean);  
protected
function AcquireLock:Boolean;  
function ReleaseLock:Boolean;  
 
function DoGet(AHost:THTTPHost; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse):Boolean; virtual;  
function DoHead(AHost:THTTPHost; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse):Boolean; virtual;  
function DoPost(AHost:THTTPHost; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse):Boolean; virtual;  
function DoPut(AHost:THTTPHost; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse):Boolean; virtual;  
public
property Name:String read GetName write SetName;  
property Hash:LongWord read FHash;  
property Flags:LongWord read FFlags write SetFlags;  
 
property IsDefault:Boolean read GetIsDefault write SetIsDefault;  
property IsFolder:Boolean read GetIsFolder write SetIsFolder;  
property IsSubtree:Boolean read GetIsSubtree write SetIsSubtree;  
property IsExtension:Boolean read GetIsExtension write SetIsExtension;  
 
property OnGet:THTTPDocumentEvent read FOnGet write FOnGet;  
property OnHead:THTTPDocumentEvent read FOnHead write FOnHead;  
property OnPost:THTTPDocumentEvent read FOnPost write FOnPost;  
property OnPut:THTTPDocumentEvent read FOnPut write FOnPut;  
 
function FindAlias(const AName:String):THTTPAlias;  
function MatchAlias(const AName:String):THTTPAlias; virtual;  
 
function RegisterAlias(AAlias:THTTPAlias):Boolean;  
function DeregisterAlias(AAlias:THTTPAlias):Boolean;  


Function declarations



constructor THTTPDocument.Create;
Description: To be documented
Note None documented


destructor THTTPDocument.Destroy;
Description: To be documented
Note None documented


function THTTPDocument.GetName:String;
Description: To be documented
Note None documented


procedure THTTPDocument.SetName(const AName:String);
Description: To be documented
Note None documented


procedure THTTPDocument.SetFlags(AFlags:LongWord);
Description: To be documented
Note None documented


function THTTPDocument.GetIsDefault:Boolean;
Description: To be documented
Note None documented


procedure THTTPDocument.SetIsDefault(AIsDefault:Boolean);
Description: To be documented
Note None documented


function THTTPDocument.GetIsFolder:Boolean;
Description: To be documented
Note None documented


procedure THTTPDocument.SetIsFolder(AIsFolder:Boolean);
Description: To be documented
Note None documented


function THTTPDocument.GetIsSubtree:Boolean;
Description: To be documented
Note None documented


procedure THTTPDocument.SetIsSubtree(AIsSubtree:Boolean);
Description: To be documented
Note None documented


function THTTPDocument.GetIsExtension:Boolean;
Description: To be documented
Note None documented


procedure THTTPDocument.SetIsExtension(AIsExtension:Boolean);
Description: To be documented
Note None documented


function THTTPDocument.AcquireLock:Boolean;
Description: To be documented
Note None documented


function THTTPDocument.ReleaseLock:Boolean;
Description: To be documented
Note None documented


function THTTPDocument.DoGet(AHost:THTTPHost; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse):Boolean;
Description: Base GET Method for an HTTP Document
Note None documented


function THTTPDocument.DoHead(AHost:THTTPHost; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse):Boolean;
Description: Base HEAD Method for an HTTP Document
Note None documented


function THTTPDocument.DoPost(AHost:THTTPHost; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse):Boolean;
Description: Base POST Method for an HTTP Document
Note None documented


function THTTPDocument.DoPut(AHost:THTTPHost; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse):Boolean;
Description: Base PUT Method for an HTTP Document
Note None documented


function THTTPDocument.FindAlias(const AName:String):THTTPAlias;
Description: To be documented
Note None documented


function THTTPDocument.MatchAlias(const AName:String):THTTPAlias;
Description: To be documented
Note None documented


function THTTPDocument.RegisterAlias(AAlias:THTTPAlias):Boolean;
Description: To be documented
Note None documented


function THTTPDocument.DeregisterAlias(AAlias:THTTPAlias):Boolean;
Description: To be documented
Note None documented


Return to Unit Reference