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

#include <DAVResourceAccess.hxx>

Collaboration diagram for webdav_ucp::DAVResourceAccess:
[legend]

Public Member Functions

 DAVResourceAccess (const css::uno::Reference< css::uno::XComponentContext > &rxContext, rtl::Reference< DAVSessionFactory > const &rSessionFactory, const OUString &rURL)
 
 DAVResourceAccess (const DAVResourceAccess &rOther)
 
DAVResourceAccessoperator= (const DAVResourceAccess &rOther)
 
void setFlags (const css::uno::Sequence< css::beans::NamedValue > &rFlags)
 
void setURL (const OUString &rNewURL)
 
void resetUri ()
 
const OUString & getURL () const
 
const rtl::Reference< DAVSessionFactory > & getSessionFactory () const
 
void OPTIONS (DAVOptions &rOptions, 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)
 
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)
 
void GET0 (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)
 
void abort ()
 
bool handleException (const DAVException &e, int errorCount)
 

Static Public Member Functions

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)
 
void initialize ()
 

Private Attributes

osl::Mutex m_aMutex
 
OUString m_aURL
 
OUString m_aPath
 
css::uno::Sequence< css::beans::NamedValue > m_aFlags
 
rtl::Reference< DAVSessionm_xSession
 
rtl::Reference< DAVSessionFactorym_xSessionFactory
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
std::vector< NeonUrim_aRedirectURIs
 

Detailed Description

Definition at line 55 of file neon/DAVResourceAccess.hxx.

Constructor & Destructor Documentation

webdav_ucp::DAVResourceAccess::DAVResourceAccess ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
rtl::Reference< DAVSessionFactory > const &  rSessionFactory,
const OUString &  rURL 
)
DAVResourceAccess::DAVResourceAccess ( const DAVResourceAccess rOther)

Definition at line 140 of file neon/DAVResourceAccess.cxx.

References m_xContext.

Member Function Documentation

void DAVResourceAccess::abort ( )
Exceptions
DAVException

Definition at line 570 of file neon/DAVResourceAccess.cxx.

References initialize(), and m_xSession.

void webdav_ucp::DAVResourceAccess::COPY ( const OUString &  rSourcePath,
const OUString &  rDestinationURI,
bool  bOverwrite,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
Exceptions
DAVException
void webdav_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 1109 of file neon/DAVResourceAccess.cxx.

References g_nRedirectLimit, m_aMutex, and m_aRedirectURIs.

Referenced by handleException().

css::uno::Reference< css::io::XInputStream > webdav_ucp::DAVResourceAccess::GET ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
Exceptions
DAVException
void webdav_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 > webdav_ucp::DAVResourceAccess::GET ( const std::vector< OUString > &  rHeaderNames,
DAVResource rResource,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
Exceptions
css::uno::RuntimeException
DAVException
void webdav_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
void DAVResourceAccess::GET0 ( DAVRequestHeaders rRequestHeaders,
const std::vector< OUString > &  rHeaderNames,
DAVResource rResource,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
const OUString & DAVResourceAccess::getRequestURI ( ) const
private

Definition at line 1058 of file neon/DAVResourceAccess.cxx.

References m_aPath, m_aURL, and m_xSession.

Referenced by GET0(), and OPTIONS().

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

Definition at line 84 of file neon/DAVResourceAccess.hxx.

References m_xSessionFactory.

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

Definition at line 82 of file neon/DAVResourceAccess.hxx.

References m_aURL.

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

Referenced by GET0(), and OPTIONS().

bool DAVResourceAccess::handleException ( const DAVException e,
int  errorCount 
)
void webdav_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 webdav_ucp::DAVResourceAccess::LOCK ( css::ucb::Lock &  inLock,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
Exceptions
DAVException
void webdav_ucp::DAVResourceAccess::MKCOL ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
Exceptions
DAVException
void webdav_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)
void DAVResourceAccess::OPTIONS ( DAVOptions rOptions,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
css::uno::Reference< css::io::XInputStream > webdav_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
css::uno::RuntimeException
DAVException
void webdav_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
css::uno::RuntimeException
DAVException
void webdav_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 webdav_ucp::DAVResourceAccess::PROPFIND ( const Depth  nDepth,
std::vector< DAVResourceInfo > &  rResInfo,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
Exceptions
DAVException
void webdav_ucp::DAVResourceAccess::PROPPATCH ( const std::vector< ProppatchValue > &  rValues,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
Exceptions
DAVException
void webdav_ucp::DAVResourceAccess::PUT ( const css::uno::Reference< css::io::XInputStream > &  rStream,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv 
)
Exceptions
css::uno::RuntimeException
DAVException
void DAVResourceAccess::resetUri ( )
void DAVResourceAccess::setFlags ( const css::uno::Sequence< css::beans::NamedValue > &  rFlags)
Exceptions
DAVException

Definition at line 1002 of file neon/DAVResourceAccess.cxx.

References m_aFlags, and m_aMutex.

void DAVResourceAccess::setURL ( const OUString &  rNewURL)
Exceptions
DAVException

Definition at line 1009 of file neon/DAVResourceAccess.cxx.

References m_aMutex, m_aPath, and m_aURL.

Referenced by handleException(), and resetUri().

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

Member Data Documentation

css::uno::Sequence< css::beans::NamedValue > webdav_ucp::DAVResourceAccess::m_aFlags
private

Definition at line 60 of file neon/DAVResourceAccess.hxx.

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

osl::Mutex webdav_ucp::DAVResourceAccess::m_aMutex
private
OUString webdav_ucp::DAVResourceAccess::m_aPath
private

Definition at line 59 of file neon/DAVResourceAccess.hxx.

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

std::vector< NeonUri > webdav_ucp::DAVResourceAccess::m_aRedirectURIs
private

Definition at line 64 of file neon/DAVResourceAccess.hxx.

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

OUString webdav_ucp::DAVResourceAccess::m_aURL
private
css::uno::Reference< css::uno::XComponentContext > webdav_ucp::DAVResourceAccess::m_xContext
private

Definition at line 63 of file neon/DAVResourceAccess.hxx.

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

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

Definition at line 61 of file neon/DAVResourceAccess.hxx.

Referenced by abort(), GET0(), getRequestURI(), initialize(), operator=(), and OPTIONS().

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

Definition at line 62 of file neon/DAVResourceAccess.hxx.

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


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