24#include <rtl/ustring.hxx>
26#include <osl/mutex.hxx>
27#include <com/sun/star/io/XInputStream.hpp>
28#include <com/sun/star/io/XOutputStream.hpp>
29#include <com/sun/star/beans/NamedValue.hpp>
30#include <com/sun/star/ucb/Lock.hpp>
31#include <com/sun/star/ucb/XCommandEnvironment.hpp>
32#include <com/sun/star/ucb/WebDAVHTTPMethod.hpp>
43class DAVSessionFactory;
53 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
66 void setFlags( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& rFlags );
69 void setURL(
const OUString & rNewURL );
84 const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv );
90 const std::vector< OUString > & rPropertyNames,
91 std::vector< DAVResource > & rResources,
92 const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv );
98 std::vector< DAVResourceInfo > & rResInfo,
99 const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv );
103 PROPPATCH(
const std::vector< ProppatchValue > & rValues,
104 const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv );
108 HEAD(
const std::vector< OUString > & rHeaderNames,
110 const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv );
113 css::uno::Reference< css::io::XInputStream >
114 GET(
const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv );
118 GET( css::uno::Reference< css::io::XOutputStream > & rStream,
119 const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv );
122 css::uno::Reference< css::io::XInputStream >
123 GET(
const std::vector< OUString > & rHeaderNames,
125 const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv );
131 const std::vector< OUString > & rHeaderNames,
133 const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv );
137 GET( css::uno::Reference< css::io::XOutputStream > & rStream,
138 const std::vector< OUString > & rHeaderNames,
140 const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv );
144 PUT(
const css::uno::Reference< css::io::XInputStream > & rStream,
145 const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv );
148 css::uno::Reference< css::io::XInputStream >
149 POST(
const OUString & rContentType,
150 const OUString & rReferer,
151 const css::uno::Reference< css::io::XInputStream > & rInputStream,
152 const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv );
156 POST(
const OUString & rContentType,
157 const OUString & rReferer,
158 const css::uno::Reference< css::io::XInputStream > & rInputStream,
159 css::uno::Reference< css::io::XOutputStream > & rOutputStream,
160 const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv );
164 MKCOL(
const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv );
168 COPY(
const OUString & rSourcePath,
169 const OUString & rDestinationURI,
171 const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv );
175 MOVE(
const OUString & rSourcePath,
176 const OUString & rDestinationURI,
178 const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv );
182 DESTROY(
const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv );
187 LOCK( css::ucb::Lock & inLock,
188 const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv );
192 UNLOCK(
const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv );
201 const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv,
202 const OUString & rURI,
203 css::ucb::WebDAVHTTPMethod eMethod,
void GET0(DAVRequestHeaders &rRequestHeaders, const std::vector< OUString > &rHeaderNames, DAVResource &rResource, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
used as HEAD substitute when HEAD is not implemented on server
css::uno::Reference< css::uno::XComponentContext > m_xContext
const OUString & getRequestURI() const
void setFlags(const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue > &rFlags)
DAVResourceAccess()=default
void PUT(const css::uno::Reference< css::io::XInputStream > &rStream, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
void PROPFIND(const Depth nDepth, const std::vector< OUString > &rPropertyNames, std::vector< DAVResource > &rResources, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
css::uno::Reference< css::io::XInputStream > POST(const OUString &rContentType, const OUString &rReferer, const css::uno::Reference< css::io::XInputStream > &rInputStream, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
css::uno::Reference< css::io::XInputStream > GET(const std::vector< OUString > &rHeaderNames, DAVResource &rResource, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
DAVResourceAccess & operator=(const DAVResourceAccess &rOther)
bool detectRedirectCycle(::std::u16string_view rRedirectURL)
void MKCOL(const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
void HEAD(const std::vector< OUString > &rHeaderNames, DAVResource &rResource, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
void DESTROY(const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
std::vector< CurlUri > m_aRedirectURIs
bool handleException(DAVException const &e, int errorCount)
void MOVE(const OUString &rSourcePath, const OUString &rDestinationURI, bool bOverwrite, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
void PROPPATCH(const std::vector< ProppatchValue > &rValues, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
DAVResourceAccess(css::uno::Reference< css::uno::XComponentContext > xContext, rtl::Reference< DAVSessionFactory > xSessionFactory, OUString aURL)
void GET(css::uno::Reference< css::io::XOutputStream > &rStream, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
rtl::Reference< DAVSession > m_xSession
::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue > m_aFlags
void PROPFIND(const Depth nDepth, std::vector< DAVResourceInfo > &rResInfo, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
void UNLOCK(const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
void setURL(const OUString &rNewURL)
void OPTIONS(DAVOptions &rOptions, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
void LOCK(css::ucb::Lock &inLock, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
void COPY(const OUString &rSourcePath, const OUString &rDestinationURI, bool bOverwrite, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
const rtl::Reference< DAVSessionFactory > & getSessionFactory() const
const OUString & getURL() const
static void getUserRequestHeaders(const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv, const OUString &rURI, css::ucb::WebDAVHTTPMethod eMethod, DAVRequestHeaders &rRequestHeaders)
void GET(css::uno::Reference< css::io::XOutputStream > &rStream, const std::vector< OUString > &rHeaderNames, DAVResource &rResource, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
css::uno::Reference< css::io::XInputStream > GET(const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
void POST(const OUString &rContentType, const OUString &rReferer, const css::uno::Reference< css::io::XInputStream > &rInputStream, css::uno::Reference< css::io::XOutputStream > &rOutputStream, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
rtl::Reference< DAVSessionFactory > m_xSessionFactory
std::vector< DAVRequestHeader > DAVRequestHeaders