Qore WebDavHandler Module Reference  1.0
DummyWebDavHandler.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 /* WebDavHandler module Copyright 2019 - 2022 Qore Technologies, s.r.o.
4 
5  Permission is hereby granted, free of charge, to any person obtaining a
6  copy of this software and associated documentation files (the "Software"),
7  to deal in the Software without restriction, including without limitation
8  the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  and/or sell copies of the Software, and to permit persons to whom the
10  Software is furnished to do so, subject to the following conditions:
11 
12  The above copyright notice and this permission notice shall be included in
13  all copies or substantial portions of the Software.
14 
15  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21  DEALINGS IN THE SOFTWARE.
22 */
23 
25 namespace WebDavHandler {
28 
29 public:
32 
33 
35 
38  constructor(string virtual_relative_path_base) ;
39 
40 
42 
46  constructor(AbstractWebDavPropertyHandler property_handler, string virtual_relative_path_base = "/")
47  ;
48 
49 
51 
56 constructor(Logger logger, AbstractWebDavPropertyHandler property_handler = new InMemoryWebDavPropertyHandler(), string virtual_relative_path_base = '/') ;
57 
58 
66 protected:
67  hash<HttpResponseInfo> handleGetImpl(Socket sock, hash<auto> cx, hash<auto> hdr, *data body);
68 public:
69 
70 
78 protected:
79  hash<HttpResponseInfo> handleHeadImpl(Socket sock, hash<auto> cx, hash<auto> hdr, *data body);
80 public:
81 
82 
90 protected:
91  hash<HttpResponseInfo> handlePostImpl(Socket sock, hash<auto> cx, hash<auto> hdr, *data body);
92 public:
93 
94 
102 protected:
103  hash<HttpResponseInfo> handlePutImpl(Socket sock, hash<auto> cx, hash<auto> hdr, *data body);
104 public:
105 
106 
114 protected:
115  hash<HttpResponseInfo> handleDeleteImpl(Socket sock, hash<auto> cx, hash<auto> hdr, *data body);
116 public:
117 
118 
126 protected:
127  hash<HttpResponseInfo> handleCopyImpl(Socket sock, hash<auto> cx, hash<auto> hdr, *data body);
128 public:
129 
130 
138 protected:
139  hash<HttpResponseInfo> handleMoveImpl(Socket sock, hash<auto> cx, hash<auto> hdr, *data body);
140 public:
141 
142 
150 protected:
151  hash<HttpResponseInfo> handleLockImpl(Socket sock, hash<auto> cx, hash<auto> hdr, *data body);
152 public:
153 
154 
162 protected:
163  hash<HttpResponseInfo> handleUnlockImpl(Socket sock, hash<auto> cx, hash<auto> hdr, *data body);
164 public:
165 
166 
174 protected:
175  hash<HttpResponseInfo> handleMkcolImpl(Socket sock, hash<auto> cx, hash<auto> hdr, *data body);
176 public:
177 
178 
188 protected:
189  hash<HttpResponseInfo> handlePropfindImpl(Socket sock, hash<auto> cx, hash<auto> hdr, *data body);
190 public:
191 
192 
194 
207 protected:
208  *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);
209 public:
210 
211 };
212 };
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
This class returns 501 Unimplemented responses to all WebDavHandler requests except OPTIONS.
Definition: DummyWebDavHandler.qc.dox.h:27
hash< HttpResponseInfo > handlePropfindImpl(Socket sock, hash< auto > cx, hash< auto > hdr, *data body)
*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.
hash< HttpResponseInfo > handleHeadImpl(Socket sock, hash< auto > cx, hash< auto > hdr, *data body)
constructor(AbstractWebDavPropertyHandler property_handler, string virtual_relative_path_base="/")
Creates the object with the given arguments.
hash< HttpResponseInfo > handleMoveImpl(Socket sock, hash< auto > cx, hash< auto > hdr, *data body)
hash< HttpResponseInfo > handleUnlockImpl(Socket sock, hash< auto > cx, hash< auto > hdr, *data body)
hash< HttpResponseInfo > handlePostImpl(Socket sock, hash< auto > cx, hash< auto > hdr, *data body)
constructor(string virtual_relative_path_base)
Creates the object with the given argument and an in-memory property handler.
constructor(Logger logger, AbstractWebDavPropertyHandler property_handler=new InMemoryWebDavPropertyHandler(), string virtual_relative_path_base='/')
Creates the object with the given arguments.
hash< HttpResponseInfo > handleDeleteImpl(Socket sock, hash< auto > cx, hash< auto > hdr, *data body)
hash< HttpResponseInfo > handleLockImpl(Socket sock, hash< auto > cx, hash< auto > hdr, *data body)
hash< HttpResponseInfo > handleCopyImpl(Socket sock, hash< auto > cx, hash< auto > hdr, *data body)
constructor()
Creates the object with an empty logger and an in-memory property handler.
hash< HttpResponseInfo > handleMkcolImpl(Socket sock, hash< auto > cx, hash< auto > hdr, *data body)
hash< HttpResponseInfo > handlePutImpl(Socket sock, hash< auto > cx, hash< auto > hdr, *data body)
hash< HttpResponseInfo > handleGetImpl(Socket sock, hash< auto > cx, hash< auto > hdr, *data body)
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