1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 #ifndef INCLUDED_SERFREQUESTPROCESSORIMPLFAC_HXX
23 #define INCLUDED_SERFREQUESTPROCESSORIMPLFAC_HXX
24 
25 #include <vector>
26 #include <rtl/ustring.hxx>
27 #include "DAVTypes.hxx"
28 #include "DAVResource.hxx"
29 
30 #include <SerfRequestProcessorImpl.hxx>
31 #include <SerfInputStream.hxx>
32 #include <com/sun/star/io/XOutputStream.hpp>
33 
34 namespace http_dav_ucp
35 {
36     SerfRequestProcessorImpl* createPropFindReqProcImpl( const char* inPath,
37                                                          const Depth inDepth,
38                                                          const std::vector< ::rtl::OUString > & inPropNames,
39                                                          std::vector< DAVResource > & ioResources );
40 
41     SerfRequestProcessorImpl* createPropFindReqProcImpl( const char* inPath,
42                                                          const Depth inDepth,
43                                                          std::vector< DAVResourceInfo > & ioResInfo );
44 
45     SerfRequestProcessorImpl* createPropPatchReqProcImpl( const char* inPath,
46                                                           const std::vector< ProppatchValue > & inProperties );
47 
48     SerfRequestProcessorImpl* createGetReqProcImpl( const char* inPath,
49                                                     const com::sun::star::uno::Reference< SerfInputStream >& xioInStrm );
50 
51     SerfRequestProcessorImpl* createGetReqProcImpl( const char* inPath,
52                                                     const com::sun::star::uno::Reference< SerfInputStream >& xioInStrm,
53                                                     const std::vector< ::rtl::OUString > & inHeaderNames,
54                                                     DAVResource& ioResource );
55 
56     SerfRequestProcessorImpl* createGetReqProcImpl( const char* inPath,
57                                                     const com::sun::star::uno::Reference< com::sun::star::io::XOutputStream >& xioOutStrm );
58 
59     SerfRequestProcessorImpl* createGetReqProcImpl( const char* inPath,
60                                                     const com::sun::star::uno::Reference< com::sun::star::io::XOutputStream >& xioOutStrm,
61                                                     const std::vector< ::rtl::OUString > & inHeaderNames,
62                                                     DAVResource& ioResource );
63 
64     SerfRequestProcessorImpl* createHeadReqProcImpl( const char* inPath,
65                                                      const std::vector< ::rtl::OUString > & inHeaderNames,
66                                                      DAVResource& ioResource );
67 
68     SerfRequestProcessorImpl* createPutReqProcImpl( const char* inPath,
69                                                     const char* inData,
70                                                     apr_size_t inDataLen );
71 
72     SerfRequestProcessorImpl* createPostReqProcImpl( const char* inPath,
73                                                      const char* inData,
74                                                      apr_size_t inDataLen,
75                                                      const char* inContentType,
76                                                      const char* inReferer,
77                                                      const com::sun::star::uno::Reference< SerfInputStream >& xioInStrm );
78 
79     SerfRequestProcessorImpl* createPostReqProcImpl( const char* inPath,
80                                                      const char* inData,
81                                                      apr_size_t inDataLen,
82                                                      const char* inContentType,
83                                                      const char* inReferer,
84                                                      const com::sun::star::uno::Reference< com::sun::star::io::XOutputStream >& xioOutStrm );
85 
86     SerfRequestProcessorImpl* createDeleteReqProcImpl( const char* inPath );
87 
88     SerfRequestProcessorImpl* createMkColReqProcImpl( const char* inPath );
89 
90     SerfRequestProcessorImpl* createCopyReqProcImpl( const char* inSourcePath,
91                                                      const char* inDestinationPath,
92                                                      const bool inOverwrite );
93 
94     SerfRequestProcessorImpl* createMoveReqProcImpl( const char* inSourcePath,
95                                                      const char* inDestinationPath,
96                                                      const bool inOverwrite );
97 
98 } // namespace http_dav_ucp
99 
100 #endif // INCLUDED_SERFREQUESTPROCESSORIMPLFAC_HXX
101