Davix::Context Class Reference

Main handle for Davix. More...

#include <davixcontext.hpp>


Public Member Functions

 Context ()
 Default constructor.
 Context (const Context &c)
 copy constructor
Contextoperator= (const Context &c)
 assignment operator
virtual ~Context ()
 destructor
Contextclone ()
HttpRequestcreateRequest (const Uri &uri, DavixError **err)
 low level operations
HttpRequestcreateRequest (const std::string &url, DavixError **err)
 low level operations
DavPosixcreateDavPosix ()
 POSIX-like operations.

Friends

class DavPosix
struct ContextExplorer


Detailed Description

Main handle for Davix.

Each new davix context contains its own session-reuse pool and set of parameters a Context can execute multiple queries in parallels and is thread safe


Constructor & Destructor Documentation

Davix::Context::Context ( const Context c  ) 

copy constructor

Parameters:
c 


Member Function Documentation

Context* Davix::Context::clone (  ) 

clone this instance to a new context dynamically allocated, the new context inherit of a copy of all the parent context parameters this context need to be destroyed after usage

Returns:
new allocated clone of this context

DavPosix* Davix::Context::createDavPosix (  ) 

POSIX-like operations.

Create a new allocated DavPosix Object entry point

DavPosix is the main entry point for all the POSIX-like operation :

ex : stat() open() / read() / write() / close() opendir() / readdir() / closedir() mkdir() / rmdir() / unlink()

These operations follows the POSIX semantic as much as possible.

HttpRequest* Davix::Context::createRequest ( const std::string &  url,
DavixError **  err 
)

low level operations

similar to createRequest(const Uri & uri, DavixError** err) but with a raw string input

Parameters:
url : url to use for the request
err : Davix Error report
Returns:
pointer to a new allocated request object or null if error

HttpRequest* Davix::Context::createRequest ( const Uri uri,
DavixError **  err 
)

low level operations

create a new Http request for direct HTTP low level feature usage this HTTP request object should be destroyed after usage

This function is thread safe. several requests object can be used on the same context in parallel

Parameters:
uri : Davix Uri to use for the request
err : Davix Error report
Returns:
pointer to a new allocated request object or null if error

Context& Davix::Context::operator= ( const Context c  ) 

assignment operator

Parameters:
c 
Returns:


The documentation for this class was generated from the following file:
Generated on 20 Jun 2013 for davix by  doxygen 1.4.7