LibreOffice Module ucb (master)  1
SerfPostReqProcImpl.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 #ifndef INCLUDED_UCB_SOURCE_UCP_WEBDAV_SERFPOSTREQPROCIMPL_HXX
21 #define INCLUDED_UCB_SOURCE_UCP_WEBDAV_SERFPOSTREQPROCIMPL_HXX
22 
24 
25 #include "SerfInputStream.hxx"
26 #include <com/sun/star/io/XOutputStream.hpp>
27 
28 namespace http_dav_ucp
29 {
30 
32 {
33 public:
34  SerfPostReqProcImpl( const char* inPath,
35  const DAVRequestHeaders& inRequestHeaders,
36  const char* inData,
37  apr_size_t inDataLen,
38  const char* inContentType,
39  const char* inReferer,
40  const rtl::Reference< SerfInputStream > & xioInStrm );
41 
42  SerfPostReqProcImpl( const char* inPath,
43  const DAVRequestHeaders& inRequestHeaders,
44  const char* inData,
45  apr_size_t inDataLen,
46  const char* inContentType,
47  const char* inReferer,
48  const css::uno::Reference< css::io::XOutputStream > & xioOutStrm );
49 
50  virtual ~SerfPostReqProcImpl() override;
51 
52  virtual
53  serf_bucket_t * createSerfRequestBucket( serf_request_t * inSerfRequest ) override;
54 
55 protected:
56  virtual
57  void processChunkOfResponseData( const char* data, apr_size_t len ) override;
58 
59  virtual
60  void handleEndOfResponseData( serf_bucket_t * inSerfResponseBucket ) override;
61 
62 private:
63  const char* mpPostData;
64  apr_size_t mnPostDataLen;
65  const char* mpContentType;
66  const char* mpReferer;
68  css::uno::Reference< css::io::XOutputStream > xOutputStream;
69 
70 };
71 
72 } // namespace http_dav_ucp
73 
74 #endif // INCLUDED_UCB_SOURCE_UCP_WEBDAV_SERFPOSTREQPROCIMPL_HXX
75 
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::vector< DAVRequestHeader > DAVRequestHeaders
virtual void handleEndOfResponseData(serf_bucket_t *inSerfResponseBucket) override
rtl::Reference< SerfInputStream > xInputStream
css::uno::Reference< css::io::XOutputStream > xOutputStream
SerfPostReqProcImpl(const char *inPath, const DAVRequestHeaders &inRequestHeaders, const char *inData, apr_size_t inDataLen, const char *inContentType, const char *inReferer, const rtl::Reference< SerfInputStream > &xioInStrm)
virtual serf_bucket_t * createSerfRequestBucket(serf_request_t *inSerfRequest) override
virtual void processChunkOfResponseData(const char *data, apr_size_t len) override