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