1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include <SerfRequestProcessorImplFac.hxx>
21 #include <SerfPropFindReqProcImpl.hxx>
22 #include <SerfPropPatchReqProcImpl.hxx>
23 #include <SerfGetReqProcImpl.hxx>
24 #include <SerfHeadReqProcImpl.hxx>
25 #include <SerfPutReqProcImpl.hxx>
26 #include <SerfPostReqProcImpl.hxx>
27 #include <SerfDeleteReqProcImpl.hxx>
28 #include <SerfMkColReqProcImpl.hxx>
29 #include <SerfCopyReqProcImpl.hxx>
30 #include <SerfMoveReqProcImpl.hxx>
32 namespace http_dav_ucp
34 SerfRequestProcessorImpl
* createPropFindReqProcImpl( const char* inPath
,
35 const DAVRequestHeaders
& inRequestHeaders
,
37 const std::vector
< ::rtl::OUString
> & inPropNames
,
38 std::vector
< DAVResource
> & ioResources
)
40 SerfRequestProcessorImpl
* pReqProcImpl
= new SerfPropFindReqProcImpl( inPath
,
48 SerfRequestProcessorImpl
* createPropFindReqProcImpl( const char* inPath
,
49 const DAVRequestHeaders
& inRequestHeaders
,
51 std::vector
< DAVResourceInfo
> & ioResInfo
)
53 SerfRequestProcessorImpl
* pReqProcImpl
= new SerfPropFindReqProcImpl( inPath
,
60 SerfRequestProcessorImpl
* createPropPatchReqProcImpl( const char* inPath
,
61 const DAVRequestHeaders
& inRequestHeaders
,
62 const std::vector
< ProppatchValue
> & inProperties
)
64 SerfRequestProcessorImpl
* pReqProcImpl
= new SerfPropPatchReqProcImpl( inPath
,
70 SerfRequestProcessorImpl
* createGetReqProcImpl( const char* inPath
,
71 const DAVRequestHeaders
& inRequestHeaders
,
72 const com::sun::star::uno::Reference
< SerfInputStream
>& xioInStrm
)
74 SerfRequestProcessorImpl
* pReqProcImpl
= new SerfGetReqProcImpl( inPath
,
80 SerfRequestProcessorImpl
* createGetReqProcImpl( const char* inPath
,
81 const DAVRequestHeaders
& inRequestHeaders
,
82 const com::sun::star::uno::Reference
< SerfInputStream
>& xioInStrm
,
83 const std::vector
< ::rtl::OUString
> & inHeaderNames
,
84 DAVResource
& ioResource
)
86 SerfRequestProcessorImpl
* pReqProcImpl
= new SerfGetReqProcImpl( inPath
,
94 SerfRequestProcessorImpl
* createGetReqProcImpl( const char* inPath
,
95 const DAVRequestHeaders
& inRequestHeaders
,
96 const com::sun::star::uno::Reference
< com::sun::star::io::XOutputStream
>& xioOutStrm
)
98 SerfRequestProcessorImpl
* pReqProcImpl
= new SerfGetReqProcImpl( inPath
,
104 SerfRequestProcessorImpl
* createGetReqProcImpl( const char* inPath
,
105 const DAVRequestHeaders
& inRequestHeaders
,
106 const com::sun::star::uno::Reference
<com::sun::star::io::XOutputStream
>& xioOutStrm
,
107 const std::vector
< ::rtl::OUString
> & inHeaderNames
,
108 DAVResource
& ioResource
)
110 SerfRequestProcessorImpl
* pReqProcImpl
= new SerfGetReqProcImpl( inPath
,
118 SerfRequestProcessorImpl
* createHeadReqProcImpl( const char* inPath
,
119 const DAVRequestHeaders
& inRequestHeaders
,
120 const std::vector
< ::rtl::OUString
> & inHeaderNames
,
121 DAVResource
& ioResource
)
123 SerfRequestProcessorImpl
* pReqProcImpl
= new SerfHeadReqProcImpl( inPath
,
131 SerfRequestProcessorImpl
* createPutReqProcImpl( const char* inPath
,
132 const DAVRequestHeaders
& inRequestHeaders
,
134 apr_size_t inDataLen
)
136 SerfRequestProcessorImpl
* pReqProcImpl
= new SerfPutReqProcImpl( inPath
,
143 SerfRequestProcessorImpl
* createPostReqProcImpl( const char* inPath
,
144 const DAVRequestHeaders
& inRequestHeaders
,
146 apr_size_t inDataLen
,
147 const char* inContentType
,
148 const char* inReferer
,
149 const com::sun::star::uno::Reference
< SerfInputStream
>& xioInStrm
)
151 SerfRequestProcessorImpl
* pReqProcImpl
= new SerfPostReqProcImpl( inPath
,
161 SerfRequestProcessorImpl
* createPostReqProcImpl( const char* inPath
,
162 const DAVRequestHeaders
& inRequestHeaders
,
164 apr_size_t inDataLen
,
165 const char* inContentType
,
166 const char* inReferer
,
167 const com::sun::star::uno::Reference
< com::sun::star::io::XOutputStream
>& xioOutStrm
)
169 SerfRequestProcessorImpl
* pReqProcImpl
= new SerfPostReqProcImpl( inPath
,
179 SerfRequestProcessorImpl
* createDeleteReqProcImpl( const char* inPath
,
180 const DAVRequestHeaders
& inRequestHeaders
)
182 SerfRequestProcessorImpl
* pReqProcImpl
= new SerfDeleteReqProcImpl( inPath
,
187 SerfRequestProcessorImpl
* createMkColReqProcImpl( const char* inPath
,
188 const DAVRequestHeaders
& inRequestHeaders
)
190 SerfRequestProcessorImpl
* pReqProcImpl
= new SerfMkColReqProcImpl( inPath
,
195 SerfRequestProcessorImpl
* createCopyReqProcImpl( const char* inSourcePath
,
196 const DAVRequestHeaders
& inRequestHeaders
,
197 const char* inDestinationPath
,
198 const bool inOverwrite
)
200 SerfRequestProcessorImpl
* pReqProcImpl
= new SerfCopyReqProcImpl( inSourcePath
,
207 SerfRequestProcessorImpl
* createMoveReqProcImpl( const char* inSourcePath
,
208 const DAVRequestHeaders
& inRequestHeaders
,
209 const char* inDestinationPath
,
210 const bool inOverwrite
)
212 SerfRequestProcessorImpl
* pReqProcImpl
= new SerfMoveReqProcImpl( inSourcePath
,
219 } // namespace http_dav_ucp
221 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */