48 constructor(
string path, *HttpServer::AbstractAuthenticator auth) ;
57 constructor(
string path, *HttpServer::AbstractAuthenticator auth,
string virtual_relative_path_base)
110 list<hash<auto>>
preparePropFindResponse(hash<auto> cx,
string depth =
'infinity', hash<StatInfo> h,
bool all_props, *hash<
string, hash<string, bool>> additional_props);
115 string getETag(
string path);
120 hash<HttpResponseInfo> internalGet(Socket s, hash<auto> cx, hash<auto> hdr, *data body,
bool get = True);
125 *
string getDirectoryList(
string path);
165 hash<HttpResponseInfo>
handleGetImpl(Socket s, hash<auto> cx, hash<auto> hdr, *data body);
207 hash<HttpResponseInfo>
handleHeadImpl(Socket s, hash<auto> cx, hash<auto> hdr, *data body);
249 hash<HttpResponseInfo>
handlePostImpl(Socket s, hash<auto> cx, hash<auto> hdr, *data body);
289 hash<HttpResponseInfo>
handlePutImpl(Socket s, hash<auto> cx, hash<auto> hdr, *data body);
329 hash<HttpResponseInfo>
handleDeleteImpl(Socket s, hash<auto> cx, hash<auto> hdr, *data body);
369 hash<HttpResponseInfo>
handleCopyImpl(Socket s, hash<auto> cx, hash<auto> hdr, *data body);
409 hash<HttpResponseInfo>
handleMoveImpl(Socket s, hash<auto> cx, hash<auto> hdr, *data body);
449 hash<HttpResponseInfo>
handleLockImpl(Socket s, hash<auto> cx, hash<auto> hdr, *data body);
454 string getLockToken();
494 hash<HttpResponseInfo>
handleUnlockImpl(Socket s, hash<auto> cx, hash<auto> hdr, *data body);
534 hash<HttpResponseInfo>
handleMkcolImpl(Socket s, hash<auto> cx, hash<auto> hdr, *data body);
592 *hash<string, hash<string, hash<string, bool>>>
handleProppatchImpl(reference<string> href, hash<auto> cx, hash<auto> hdr, *hash<auto> request_xml, *list<hash<PropPatchActionInfo>> actions);
598 *hash<string, hash<string, hash<string, bool>>>
verifyPropertyUpdates(
string path, *list<hash<PropPatchActionInfo>> actions);
604 hash<HttpResponseInfo>
doCopyMoveIntern(Socket s, hash<auto> cx, hash<auto> hdr, *data body,
bool copy_props);
Abstract WebDavHandler interface class.
Definition: AbstractWebDavHandler.qc.dox.h:40
AbstractWebDavPropertyHandler property_handler
The property handler object.
Definition: AbstractWebDavHandler.qc.dox.h:65
Logger logger
The Logger for this object.
Definition: AbstractWebDavHandler.qc.dox.h:71
The abstract WebDavHandler property handler class interface.
Definition: AbstractWebDavPropertyHandler.qc.dox.h:27
Filesystem WebDavHandler inteface class.
Definition: FsWebDavHandler.qc.dox.h:28
list< hash< auto > > preparePropFindResponse(hash< auto > cx, string depth='infinity', hash< StatInfo > h, bool all_props, *hash< string, hash< string, bool >> additional_props)
Returns responses for each relevant resource.
hash< HttpResponseInfo > doCopyMoveIntern(Socket s, hash< auto > cx, hash< auto > hdr, *data body, bool copy_props)
Process copy and moves (without deletion) internally including properties (properties are moved,...
hash< auto > hstat2Resource(string path, string displayname, hash< StatInfo > h)
Returns resources for use in a PROPFIND request based on a StatInfo hash.
const BlockSize
Default block size for chunked sends (32KiB)
Definition: FsWebDavHandler.qc.dox.h:37
init(string path)
Common constructor initialization.
hash< HttpResponseInfo > handleCopyImpl(Socket s, hash< auto > cx, hash< auto > hdr, *data body)
Handles WebDavHandler COPY requests for WebDavHandler resources.
hash< HttpResponseInfo > handlePropfindImpl(Socket s, hash< auto > cx, hash< auto > hdr, *data body)
Handles WebDavHandler PROPFIND requests for WebDavHandler resources; reetrieves properties from WebDa...
constructor(string path, *HttpServer::AbstractAuthenticator auth)
Creates the object with an empty logger and an in-memory property handler.
const IoTimeout
Default I/O timeout.
Definition: FsWebDavHandler.qc.dox.h:40
hash< HttpResponseInfo > handleUnlockImpl(Socket s, hash< auto > cx, hash< auto > hdr, *data body)
Handles WebDavHandler UNLOCK requests for WebDavHandler resources.
hash< HttpResponseInfo > handlePostImpl(Socket s, hash< auto > cx, hash< auto > hdr, *data body)
Handles HTTP POST requests for WebDavHandler resources.
constructor(string path, *HttpServer::AbstractAuthenticator auth, string virtual_relative_path_base)
Creates the object with the given argument and an in-memory property handler.
*hash< string, hash< string, hash< string, bool > > > verifyPropertyUpdates(string path, *list< hash< PropPatchActionInfo >> actions)
Verifies that all property updates can be performed before executing them.
hash< HttpResponseInfo > handlePutImpl(Socket s, hash< auto > cx, hash< auto > hdr, *data body)
Handles HTTP PUT requests for WebDavHandler resources.
string basePath
The root directory for serving files.
Definition: FsWebDavHandler.qc.dox.h:33
constructor(string path, *HttpServer::AbstractAuthenticator auth, AbstractWebDavPropertyHandler property_handler, string virtual_relative_path_base='/')
Creates the object with the given arguments.
*string getContentType(string filePath)
Returns the content type for the file based on its extension.
hash< HttpResponseInfo > handleLockImpl(Socket s, hash< auto > cx, hash< auto > hdr, *data body)
Handles WebDavHandler LOCK requests for WebDavHandler resources.
hash< HttpResponseInfo > handleDeleteImpl(Socket s, hash< auto > cx, hash< auto > hdr, *data body)
Handles HTTP DELETE requests for WebDavHandler resources.
hash< HttpResponseInfo > handleMkcolImpl(Socket s, hash< auto > cx, hash< auto > hdr, *data body)
Handles WebDavHandler MKCOL requests for WebDavHandler resources.
hash< HttpResponseInfo > handleHeadImpl(Socket s, hash< auto > cx, hash< auto > hdr, *data body)
Handles HTTP HEAD requests for WebDavHandler resources.
hash< HttpResponseInfo > handleMoveImpl(Socket s, hash< auto > cx, hash< auto > hdr, *data body)
Handles WebDavHandler MOVE requests for WebDavHandler resources.
constructor(string path, *HttpServer::AbstractAuthenticator auth, Logger logger, AbstractWebDavPropertyHandler property_handler=new InMemoryWebDavPropertyHandler(), string virtual_relative_path_base='/')
Creates the object with the given arguments.
*hash< string, hash< string, hash< string, bool > > > handleProppatchImpl(reference< string > href, hash< auto > cx, hash< auto > hdr, *hash< auto > request_xml, *list< hash< PropPatchActionInfo >> actions)
Internal method for handling PROPPATCH requests.
string getRealPath(string raw_path)
Converts a request path to a normalized real path on the filesystem in the root WebDavHandler directo...
internalCopyMove(Socket s, hash< auto > cx, hash< auto > hdr, *data body, bool copy_props)
Copy or move the file and any properties.
hash< HttpResponseInfo > handleGetImpl(Socket s, hash< auto > cx, hash< auto > hdr, *data body)
Handles HTTP GET requests for WebDavHandler resources.
An in-memory property handler that stores and retrieves all properties in memory.
Definition: InMemoryWebDavPropertyHandler.qc.dox.h:27
Main public WebDavHandler namespace.
Definition: AbstractWebDavHandler.qc.dox.h:26