18590a0fdSAndre Fischer /**************************************************************
28590a0fdSAndre Fischer  *
38590a0fdSAndre Fischer  * Licensed to the Apache Software Foundation (ASF) under one
48590a0fdSAndre Fischer  * or more contributor license agreements.  See the NOTICE file
58590a0fdSAndre Fischer  * distributed with this work for additional information
68590a0fdSAndre Fischer  * regarding copyright ownership.  The ASF licenses this file
78590a0fdSAndre Fischer  * to you under the Apache License, Version 2.0 (the
88590a0fdSAndre Fischer  * "License"); you may not use this file except in compliance
98590a0fdSAndre Fischer  * with the License.  You may obtain a copy of the License at
108590a0fdSAndre Fischer  *
118590a0fdSAndre Fischer  *   http://www.apache.org/licenses/LICENSE-2.0
128590a0fdSAndre Fischer  *
138590a0fdSAndre Fischer  * Unless required by applicable law or agreed to in writing,
148590a0fdSAndre Fischer  * software distributed under the License is distributed on an
158590a0fdSAndre Fischer  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
168590a0fdSAndre Fischer  * KIND, either express or implied.  See the License for the
178590a0fdSAndre Fischer  * specific language governing permissions and limitations
188590a0fdSAndre Fischer  * under the License.
198590a0fdSAndre Fischer  *
208590a0fdSAndre Fischer  *************************************************************/
218590a0fdSAndre Fischer 
228590a0fdSAndre Fischer #ifndef INCLUDED_SERFREQUESTPROCESSORIMPLFAC_HXX
238590a0fdSAndre Fischer #define INCLUDED_SERFREQUESTPROCESSORIMPLFAC_HXX
248590a0fdSAndre Fischer 
258590a0fdSAndre Fischer #include <vector>
268590a0fdSAndre Fischer #include <rtl/ustring.hxx>
278590a0fdSAndre Fischer #include "DAVTypes.hxx"
288590a0fdSAndre Fischer #include "DAVResource.hxx"
298590a0fdSAndre Fischer 
30*3edf6992SAndrea Pescetti #include "SerfTypes.hxx"
31c1c10f68SAriel Constenla-Haile #include "SerfRequestProcessorImpl.hxx"
32c1c10f68SAriel Constenla-Haile #include "SerfInputStream.hxx"
338590a0fdSAndre Fischer #include <com/sun/star/io/XOutputStream.hpp>
348590a0fdSAndre Fischer 
358590a0fdSAndre Fischer namespace http_dav_ucp
368590a0fdSAndre Fischer {
378590a0fdSAndre Fischer     SerfRequestProcessorImpl* createPropFindReqProcImpl( const char* inPath,
38e9ff7e89SOliver-Rainer Wittmann                                                          const DAVRequestHeaders& inRequestHeaders,
398590a0fdSAndre Fischer                                                          const Depth inDepth,
408590a0fdSAndre Fischer                                                          const std::vector< ::rtl::OUString > & inPropNames,
418590a0fdSAndre Fischer                                                          std::vector< DAVResource > & ioResources );
428590a0fdSAndre Fischer 
438590a0fdSAndre Fischer     SerfRequestProcessorImpl* createPropFindReqProcImpl( const char* inPath,
44e9ff7e89SOliver-Rainer Wittmann                                                          const DAVRequestHeaders& inRequestHeaders,
458590a0fdSAndre Fischer                                                          const Depth inDepth,
468590a0fdSAndre Fischer                                                          std::vector< DAVResourceInfo > & ioResInfo );
478590a0fdSAndre Fischer 
488590a0fdSAndre Fischer     SerfRequestProcessorImpl* createPropPatchReqProcImpl( const char* inPath,
49e9ff7e89SOliver-Rainer Wittmann                                                           const DAVRequestHeaders& inRequestHeaders,
50*3edf6992SAndrea Pescetti                                                           const std::vector< ProppatchValue > & inProperties,
51*3edf6992SAndrea Pescetti                                                           const char* inLockToken );
528590a0fdSAndre Fischer 
538590a0fdSAndre Fischer     SerfRequestProcessorImpl* createGetReqProcImpl( const char* inPath,
54e9ff7e89SOliver-Rainer Wittmann                                                     const DAVRequestHeaders& inRequestHeaders,
558590a0fdSAndre Fischer                                                     const com::sun::star::uno::Reference< SerfInputStream >& xioInStrm );
568590a0fdSAndre Fischer 
578590a0fdSAndre Fischer     SerfRequestProcessorImpl* createGetReqProcImpl( const char* inPath,
58e9ff7e89SOliver-Rainer Wittmann                                                     const DAVRequestHeaders& inRequestHeaders,
598590a0fdSAndre Fischer                                                     const com::sun::star::uno::Reference< SerfInputStream >& xioInStrm,
608590a0fdSAndre Fischer                                                     const std::vector< ::rtl::OUString > & inHeaderNames,
618590a0fdSAndre Fischer                                                     DAVResource& ioResource );
628590a0fdSAndre Fischer 
638590a0fdSAndre Fischer     SerfRequestProcessorImpl* createGetReqProcImpl( const char* inPath,
64e9ff7e89SOliver-Rainer Wittmann                                                     const DAVRequestHeaders& inRequestHeaders,
658590a0fdSAndre Fischer                                                     const com::sun::star::uno::Reference< com::sun::star::io::XOutputStream >& xioOutStrm );
668590a0fdSAndre Fischer 
678590a0fdSAndre Fischer     SerfRequestProcessorImpl* createGetReqProcImpl( const char* inPath,
68e9ff7e89SOliver-Rainer Wittmann                                                     const DAVRequestHeaders& inRequestHeaders,
698590a0fdSAndre Fischer                                                     const com::sun::star::uno::Reference< com::sun::star::io::XOutputStream >& xioOutStrm,
708590a0fdSAndre Fischer                                                     const std::vector< ::rtl::OUString > & inHeaderNames,
718590a0fdSAndre Fischer                                                     DAVResource& ioResource );
728590a0fdSAndre Fischer 
738590a0fdSAndre Fischer     SerfRequestProcessorImpl* createHeadReqProcImpl( const char* inPath,
74e9ff7e89SOliver-Rainer Wittmann                                                      const DAVRequestHeaders& inRequestHeaders,
758590a0fdSAndre Fischer                                                      const std::vector< ::rtl::OUString > & inHeaderNames,
768590a0fdSAndre Fischer                                                      DAVResource& ioResource );
778590a0fdSAndre Fischer 
788590a0fdSAndre Fischer     SerfRequestProcessorImpl* createPutReqProcImpl( const char* inPath,
79e9ff7e89SOliver-Rainer Wittmann                                                     const DAVRequestHeaders& inRequestHeaders,
808590a0fdSAndre Fischer                                                     const char* inData,
81*3edf6992SAndrea Pescetti                                                     const char* inLockToken,
828590a0fdSAndre Fischer                                                     apr_size_t inDataLen );
838590a0fdSAndre Fischer 
848590a0fdSAndre Fischer     SerfRequestProcessorImpl* createPostReqProcImpl( const char* inPath,
85e9ff7e89SOliver-Rainer Wittmann                                                      const DAVRequestHeaders& inRequestHeaders,
868590a0fdSAndre Fischer                                                      const char* inData,
878590a0fdSAndre Fischer                                                      apr_size_t inDataLen,
88*3edf6992SAndrea Pescetti                                                      const char* inLockToken,
898590a0fdSAndre Fischer                                                      const char* inContentType,
908590a0fdSAndre Fischer                                                      const char* inReferer,
918590a0fdSAndre Fischer                                                      const com::sun::star::uno::Reference< SerfInputStream >& xioInStrm );
928590a0fdSAndre Fischer 
938590a0fdSAndre Fischer     SerfRequestProcessorImpl* createPostReqProcImpl( const char* inPath,
94e9ff7e89SOliver-Rainer Wittmann                                                      const DAVRequestHeaders& inRequestHeaders,
958590a0fdSAndre Fischer                                                      const char* inData,
968590a0fdSAndre Fischer                                                      apr_size_t inDataLen,
97*3edf6992SAndrea Pescetti                                                      const char* inLockToken,
988590a0fdSAndre Fischer                                                      const char* inContentType,
998590a0fdSAndre Fischer                                                      const char* inReferer,
1008590a0fdSAndre Fischer                                                      const com::sun::star::uno::Reference< com::sun::star::io::XOutputStream >& xioOutStrm );
1018590a0fdSAndre Fischer 
102e9ff7e89SOliver-Rainer Wittmann     SerfRequestProcessorImpl* createDeleteReqProcImpl( const char* inPath,
103*3edf6992SAndrea Pescetti                                                        const DAVRequestHeaders& inRequestHeaders,
104*3edf6992SAndrea Pescetti                                                        const char * inLockToken );
1058590a0fdSAndre Fischer 
106e9ff7e89SOliver-Rainer Wittmann     SerfRequestProcessorImpl* createMkColReqProcImpl( const char* inPath,
107*3edf6992SAndrea Pescetti                                                       const DAVRequestHeaders& inRequestHeaders,
108*3edf6992SAndrea Pescetti                                                       const char * inLockToken );
1098590a0fdSAndre Fischer 
1108590a0fdSAndre Fischer     SerfRequestProcessorImpl* createCopyReqProcImpl( const char* inSourcePath,
111e9ff7e89SOliver-Rainer Wittmann                                                      const DAVRequestHeaders& inRequestHeaders,
1128590a0fdSAndre Fischer                                                      const char* inDestinationPath,
113*3edf6992SAndrea Pescetti                                                      const bool inOverwrite,
114*3edf6992SAndrea Pescetti                                                      const char* inLockToken );
1158590a0fdSAndre Fischer 
1168590a0fdSAndre Fischer     SerfRequestProcessorImpl* createMoveReqProcImpl( const char* inSourcePath,
117e9ff7e89SOliver-Rainer Wittmann                                                      const DAVRequestHeaders& inRequestHeaders,
1188590a0fdSAndre Fischer                                                      const char* inDestinationPath,
119*3edf6992SAndrea Pescetti                                                      const bool inOverwrite,
120*3edf6992SAndrea Pescetti                                                      const char* inLockToken );
121*3edf6992SAndrea Pescetti 
122*3edf6992SAndrea Pescetti     SerfRequestProcessorImpl* createLockReqProcImpl( const char* inSourcePath,
123*3edf6992SAndrea Pescetti                                                      const DAVRequestHeaders& inRequestHeaders,
124*3edf6992SAndrea Pescetti                                                      const ucb::Lock& inLock,
125*3edf6992SAndrea Pescetti                                                      const char* inTimeout,
126*3edf6992SAndrea Pescetti                                                      DAVPropertyValue & outLock );
127*3edf6992SAndrea Pescetti 
128*3edf6992SAndrea Pescetti     SerfRequestProcessorImpl* createLockRefreshProcImpl( const char* inSourcePath,
129*3edf6992SAndrea Pescetti                                                      const DAVRequestHeaders& inRequestHeaders,
130*3edf6992SAndrea Pescetti                                                      const ucb::Lock& inLock,
131*3edf6992SAndrea Pescetti                                                      const char* inToken,
132*3edf6992SAndrea Pescetti                                                      const char* inTimeout,
133*3edf6992SAndrea Pescetti                                                      DAVPropertyValue & outLock );
134*3edf6992SAndrea Pescetti 
135*3edf6992SAndrea Pescetti     SerfRequestProcessorImpl* createUnlockProcImpl( const char* inSourcePath,
136*3edf6992SAndrea Pescetti                                                      const DAVRequestHeaders& inRequestHeaders,
137*3edf6992SAndrea Pescetti                                                      const ucb::Lock& inLock,
138*3edf6992SAndrea Pescetti                                                      const char* inToken );
1398590a0fdSAndre Fischer 
1408590a0fdSAndre Fischer } // namespace http_dav_ucp
1418590a0fdSAndre Fischer 
1428590a0fdSAndre Fischer #endif // INCLUDED_SERFREQUESTPROCESSORIMPLFAC_HXX
143