LibreOffice Module ucb (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
http_dav_ucp::DAVResourceAccess Class Reference

#include <DAVResourceAccess.hxx>

Collaboration diagram for http_dav_ucp::DAVResourceAccess:
[legend]

Public Member Functions

 DAVResourceAccess ()=default
 
 DAVResourceAccess (const css::uno::Reference< css::uno::XComponentContext > &rContext, rtl::Reference< DAVSessionFactory > const &rSessionFactory, const OUString &rURL)
 
 DAVResourceAccess (const DAVResourceAccess &rOther)
 
DAVResourceAccessoperator= (const DAVResourceAccess &rOther)
 
void setURL (const OUString &rNewURL)
 
void resetUri ()
 
const OUString & getURL () const
 
rtl::Reference< DAVSessionFactorygetSessionFactory () const
 
void PROPFIND (const Depth nDepth, const std::vector< OUString > &rPropertyNames, std::vector< DAVResource > &rResources, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
void PROPFIND (const Depth nDepth, std::vector< DAVResourceInfo > &rResInfo, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
void PROPPATCH (const std::vector< ProppatchValue > &rValues, 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)
 
css::uno::Reference< css::io::XInputStream > GET (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
void GET (css::uno::Reference< css::io::XOutputStream > &rStream, 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)
 
css::uno::Reference< css::io::XInputStream > GET (DAVRequestHeaders &rRequestHeaders, const std::vector< OUString > &rHeaderNames, DAVResource &rResource, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
void GET (css::uno::Reference< css::io::XOutputStream > &rStream, const std::vector< OUString > &rHeaderNames, DAVResource &rResource, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
void PUT (const css::uno::Reference< css::io::XInputStream > &rStream, 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)
 
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)
 
void MKCOL (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)
 
void MOVE (const OUString &rSourcePath, const OUString &rDestinationURI, bool bOverwrite, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
void DESTROY (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
void LOCK (css::ucb::Lock &inLock, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
void UNLOCK (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 

Static Public Member Functions

static void abort ()
 
static void getUserRequestHeaders (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv, const OUString &rURI, css::ucb::WebDAVHTTPMethod eMethod, DAVRequestHeaders &rRequestHeaders)
 

Private Member Functions

const OUString & getRequestURI () const
 
bool detectRedirectCycle (const OUString &rRedirectURL)
 
bool handleException (DAVException &e, int errorCount)
 
void initialize ()
 

Private Attributes

osl::Mutex m_aMutex
 
OUString m_aURL
 
OUString m_aPath
 
rtl::Reference< DAVSessionm_xSession
 
rtl::Reference< DAVSessionFactorym_xSessionFactory
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
std::vector< SerfUrim_aRedirectURIs
 

Detailed Description

Definition at line 45 of file DAVResourceAccess.hxx.

Constructor & Destructor Documentation

http_dav_ucp::DAVResourceAccess::DAVResourceAccess ( )
default
http_dav_ucp::DAVResourceAccess::DAVResourceAccess ( const css::uno::Reference< css::uno::XComponentContext > &  rContext,
rtl::Reference< DAVSessionFactory > const &  rSessionFactory,
const OUString &  rURL 
)
DAVResourceAccess::DAVResourceAccess ( const DAVResourceAccess rOther)

Definition at line 137 of file DAVResourceAccess.cxx.

References m_xContext.

Member Function Documentation

void DAVResourceAccess::abort ( )
static
Exceptions
DAVException

Definition at line 531 of file DAVResourceAccess.cxx.

References SAL_INFO.

void http_dav_ucp::DAVResourceAccess::COPY ( const OUString &  rSourcePath,
const OUString &  rDestinationURI,
bool  bOverwrite,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
Exceptions
DAVException
void http_dav_ucp::DAVResourceAccess::DESTROY ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
Exceptions
DAVException
bool DAVResourceAccess::detectRedirectCycle ( const OUString &  rRedirectURL)
private
Exceptions
DAVException

Definition at line 1055 of file DAVResourceAccess.cxx.

References m_aMutex, and m_aRedirectURIs.

Referenced by handleException().

css::uno::Reference< css::io::XInputStream > http_dav_ucp::DAVResourceAccess::GET ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
Exceptions
DAVException
void http_dav_ucp::DAVResourceAccess::GET ( css::uno::Reference< css::io::XOutputStream > &  rStream,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
Exceptions
DAVException
css::uno::Reference< css::io::XInputStream > http_dav_ucp::DAVResourceAccess::GET ( const std::vector< OUString > &  rHeaderNames,
DAVResource rResource,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
Exceptions
DAVException
css::uno::Reference< css::io::XInputStream > http_dav_ucp::DAVResourceAccess::GET ( DAVRequestHeaders rRequestHeaders,
const std::vector< OUString > &  rHeaderNames,
DAVResource rResource,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
Exceptions
DAVException
void http_dav_ucp::DAVResourceAccess::GET ( css::uno::Reference< css::io::XOutputStream > &  rStream,
const std::vector< OUString > &  rHeaderNames,
DAVResource rResource,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
Exceptions
DAVException
const OUString & DAVResourceAccess::getRequestURI ( ) const
private

Definition at line 1014 of file DAVResourceAccess.cxx.

References m_aPath, m_aURL, m_xSession, and SAL_WARN_IF.

rtl::Reference< DAVSessionFactory > http_dav_ucp::DAVResourceAccess::getSessionFactory ( ) const
inline

Definition at line 71 of file DAVResourceAccess.hxx.

References m_xSessionFactory.

const OUString& http_dav_ucp::DAVResourceAccess::getURL ( ) const
inline

Definition at line 69 of file DAVResourceAccess.hxx.

References m_aURL.

static void http_dav_ucp::DAVResourceAccess::getUserRequestHeaders ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv,
const OUString &  rURI,
css::ucb::WebDAVHTTPMethod  eMethod,
DAVRequestHeaders rRequestHeaders 
)
static
bool DAVResourceAccess::handleException ( DAVException e,
int  errorCount 
)
private
void http_dav_ucp::DAVResourceAccess::HEAD ( const std::vector< OUString > &  rHeaderNames,
DAVResource rResource,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
Exceptions
DAVException
void DAVResourceAccess::initialize ( )
private
void http_dav_ucp::DAVResourceAccess::LOCK ( css::ucb::Lock &  inLock,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
Exceptions
DAVException
void http_dav_ucp::DAVResourceAccess::MKCOL ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
Exceptions
DAVException
void http_dav_ucp::DAVResourceAccess::MOVE ( const OUString &  rSourcePath,
const OUString &  rDestinationURI,
bool  bOverwrite,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
Exceptions
DAVException
DAVResourceAccess & DAVResourceAccess::operator= ( const DAVResourceAccess rOther)
css::uno::Reference< css::io::XInputStream > http_dav_ucp::DAVResourceAccess::POST ( const OUString &  rContentType,
const OUString &  rReferer,
const css::uno::Reference< css::io::XInputStream > &  rInputStream,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
Exceptions
DAVException
void http_dav_ucp::DAVResourceAccess::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 
)
Exceptions
DAVException
void http_dav_ucp::DAVResourceAccess::PROPFIND ( const Depth  nDepth,
const std::vector< OUString > &  rPropertyNames,
std::vector< DAVResource > &  rResources,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
Exceptions
DAVException
void http_dav_ucp::DAVResourceAccess::PROPFIND ( const Depth  nDepth,
std::vector< DAVResourceInfo > &  rResInfo,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
Exceptions
DAVException
void http_dav_ucp::DAVResourceAccess::PROPPATCH ( const std::vector< ProppatchValue > &  rValues,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
Exceptions
DAVException
void http_dav_ucp::DAVResourceAccess::PUT ( const css::uno::Reference< css::io::XInputStream > &  rStream,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
Exceptions
DAVException
void DAVResourceAccess::resetUri ( )
void DAVResourceAccess::setURL ( const OUString &  rNewURL)
Exceptions
DAVException

Definition at line 965 of file DAVResourceAccess.cxx.

References m_aMutex, m_aPath, and m_aURL.

Referenced by handleException(), and resetUri().

void http_dav_ucp::DAVResourceAccess::UNLOCK ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
Exceptions
DAVException

Member Data Documentation

osl::Mutex http_dav_ucp::DAVResourceAccess::m_aMutex
private

Definition at line 47 of file DAVResourceAccess.hxx.

Referenced by detectRedirectCycle(), initialize(), resetUri(), and setURL().

OUString http_dav_ucp::DAVResourceAccess::m_aPath
private

Definition at line 49 of file DAVResourceAccess.hxx.

Referenced by getRequestURI(), initialize(), operator=(), and setURL().

std::vector< SerfUri > http_dav_ucp::DAVResourceAccess::m_aRedirectURIs
private

Definition at line 53 of file DAVResourceAccess.hxx.

Referenced by detectRedirectCycle(), initialize(), operator=(), and resetUri().

OUString http_dav_ucp::DAVResourceAccess::m_aURL
private

Definition at line 48 of file DAVResourceAccess.hxx.

Referenced by getRequestURI(), getURL(), initialize(), operator=(), and setURL().

css::uno::Reference< css::uno::XComponentContext > http_dav_ucp::DAVResourceAccess::m_xContext
private

Definition at line 52 of file DAVResourceAccess.hxx.

Referenced by initialize(), and operator=().

rtl::Reference< DAVSession > http_dav_ucp::DAVResourceAccess::m_xSession
private

Definition at line 50 of file DAVResourceAccess.hxx.

Referenced by getRequestURI(), initialize(), and operator=().

rtl::Reference< DAVSessionFactory > http_dav_ucp::DAVResourceAccess::m_xSessionFactory
private

Definition at line 51 of file DAVResourceAccess.hxx.

Referenced by getSessionFactory(), initialize(), and operator=().


The documentation for this class was generated from the following files: