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 #pragma once
21 
23 
24 #include "SerfInputStream.hxx"
25 #include <com/sun/star/io/XOutputStream.hpp>
26 
27 namespace http_dav_ucp
28 {
29 
31 {
32 public:
33  SerfPostReqProcImpl( const char* inPath,
34  const DAVRequestHeaders& inRequestHeaders,
35  const char* inData,
36  apr_size_t inDataLen,
37  const char* inContentType,
38  const char* inReferer,
39  const rtl::Reference< SerfInputStream > & xioInStrm );
40 
41  SerfPostReqProcImpl( const char* inPath,
42  const DAVRequestHeaders& inRequestHeaders,
43  const char* inData,
44  apr_size_t inDataLen,
45  const char* inContentType,
46  const char* inReferer,
47  const css::uno::Reference< css::io::XOutputStream > & xioOutStrm );
48 
49  virtual ~SerfPostReqProcImpl() override;
50 
51  virtual
52  serf_bucket_t * createSerfRequestBucket( serf_request_t * inSerfRequest ) override;
53 
54 protected:
55  virtual
56  void processChunkOfResponseData( const char* data, apr_size_t len ) override;
57 
58  virtual
59  void handleEndOfResponseData( serf_bucket_t * inSerfResponseBucket ) override;
60 
61 private:
62  const char* mpPostData;
63  apr_size_t mnPostDataLen;
64  const char* mpContentType;
65  const char* mpReferer;
67  css::uno::Reference< css::io::XOutputStream > xOutputStream;
68 
69 };
70 
71 } // namespace http_dav_ucp
72 
73 /* 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
exports com.sun.star.chart2. data