Discuss this help topic in SecureBlackbox Forum

TElWebDAVServer.OnBeforeDownload

TElWebDAVServer     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


This event is fired when a download request is received.

Declaration

[C#]
    event TSBWebDAVBeforeDownloadEvent OnBeforeDownload;
    delegate void TSBWebDAVBeforeDownloadEvent(Object Sender, ref string URL, ref bool Allow);

[VB.NET]
    Event OnBeforeDownload As TSBWebDAVBeforeDownloadEvent
    Delegate Sub TSBWebDAVBeforeDownloadEvent(ByVal Sender As Object, ByRef URL As String, ByRef Allow As Boolean)

[Pascal]
    property OnBeforeDownload : TSBWebDAVBeforeDownloadEvent;
    TSBWebDAVBeforeDownloadEvent = procedure(Sender : TObject; var URL : string; var Allow : boolean) of object;

[C++]
    void get_OnBeforeDownload(TSBWebDAVBeforeDownloadEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnBeforeDownload(TSBWebDAVBeforeDownloadEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBWebDAVBeforeDownloadEvent)(void * _ObjectData, TObjectHandle Sender, char * pcURL, int32_t &szURL, int8_t &Allow);

[PHP]
    TSBWebDAVBeforeDownloadEvent|callable|NULL get_OnBeforeDownload()
    void set_OnBeforeDownload(TSBWebDAVBeforeDownloadEvent|callable|NULL $Value)
    callable TSBWebDAVBeforeDownloadEvent(TObject $Sender, string &$URL, bool &$Allow)

[Java]
    TSBWebDAVBeforeDownloadEvent getOnBeforeDownload();
    void setOnBeforeDownload(TSBWebDAVBeforeDownloadEvent Value);
    TSBWebDAVBeforeDownloadEvent.Callback OnBeforeDownload = new TSBWebDAVBeforeDownloadEvent.Callback() {
        public void TSBWebDAVBeforeDownloadEventCallback(TObject Sender, TSBString URL, TSBBoolean Allow) {
            //...
        }
    }

Parameters

  • URL - the URL of the requested resource.
  • pcURL - the URL of the requested resource.
  • szURL - the length of pcURL in bytes.
  • Allow - the handler should specify, using this parameter, whether the download is allowed.

Description

    This event is fired when a client tries to download certain resource.

See also:     OnTransferFinished    

Discuss this help topic in SecureBlackbox Forum