Difference between revisions of "THTTPFolder"

From Ultibo.org
Jump to: navigation, search
(Created page with "Return to Unit HTTP __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible mw-collapse...")
(No difference)

Revision as of 06:41, 17 May 2018

Return to Unit HTTP


Description


To be documented

Class definitions



THTTPFolder = class(THTTPDocument)

public
constructor Create;  
private
FFolder:String;  
FIndexPage:String;  
FAllowCache:Boolean;  
FAllowListing:Boolean;  
FAllowSubtree:Boolean;  
 
function GetFolder:String;  
procedure SetFolder(const AFolder:String);  
function GetIndexPage:String;  
procedure SetIndexPage(const AIndexPage:String);  
procedure SetAllowCache(AAllowCache:Boolean);  
procedure SetAllowListing(AAllowListing:Boolean);  
procedure SetAllowSubtree(AAllowSubtree:Boolean);  
protected
function DoGet(AHost:THTTPHost; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse):Boolean; override;  
function DoHead(AHost:THTTPHost; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse):Boolean; override;  
 
function DoGetFile(AHost:THTTPHost; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse; const AFile:String):Boolean; virtual;  
function DoGetFolder(AHost:THTTPHost; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse; const AFolder:String):Boolean; virtual;  
public
property Folder:String read GetFolder write SetFolder;  
property IndexPage:String read GetIndexPage write SetIndexPage;  
property AllowCache:Boolean read FAllowCache write SetAllowCache;  
property AllowListing:Boolean read FAllowListing write SetAllowListing;  
property AllowSubtree:Boolean read FAllowSubtree write SetAllowSubtree;  


Function declarations



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


function THTTPFolder.GetFolder:String;
Description: To be documented
Note None documented


procedure THTTPFolder.SetFolder(const AFolder:String);
Description: To be documented
Note None documented


function THTTPFolder.GetIndexPage:String;
Description: To be documented
Note None documented


procedure THTTPFolder.SetIndexPage(const AIndexPage:String);
Description: To be documented
Note None documented


procedure THTTPFolder.SetAllowCache(AAllowCache:Boolean);
Description: To be documented
Note None documented


procedure THTTPFolder.SetAllowListing(AAllowListing:Boolean);
Description: To be documented
Note None documented


procedure THTTPFolder.SetAllowSubtree(AAllowSubtree:Boolean);
Description: To be documented
Note None documented


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


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


function THTTPFolder.DoGetFile(AHost:THTTPHost; ARequest:THTTPServerRequest; AResponse:THTTPServerResponse; const AFile:String):Boolean;
Description: To be documented
Note Caller must ensure the file exists


function THTTPFolder.DoGetFolder(AHost:THTTPHost;ARequest:THTTPServerRequest;AResponse:THTTPServerResponse;const AFolder:String):Boolean;
Description: To be documented
Note Caller must ensure the folder exists


Return to Unit Reference