Main handle for Davix. More...
#include <davixcontext.hpp>
Public Member Functions | |
Context () | |
Default constructor. | |
Context (const Context &c) | |
copy constructor | |
Context & | operator= (const Context &c) |
assignment operator | |
virtual | ~Context () |
destructor | |
Context * | clone () |
HttpRequest * | createRequest (const Uri &uri, DavixError **err) |
low level operations | |
HttpRequest * | createRequest (const std::string &url, DavixError **err) |
low level operations | |
DavPosix * | createDavPosix () |
POSIX-like operations. | |
Friends | |
class | DavPosix |
struct | ContextExplorer |
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
Davix::Context::Context | ( | const Context & | c | ) |
copy constructor
c |
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
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
url | : url to use for the request | |
err | : Davix Error report |
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
uri | : Davix Uri to use for the request | |
err | : Davix Error report |