Inheritance diagram for uscxml::URLImpl:
[legend]
Collaboration diagram for uscxml::URLImpl:
[legend]

Public Member Functions

 URLImpl (const std::string &url)
 
void addMonitor (URLMonitor *monitor)
 
void addOutHeader (const std::string &key, const std::string &value)
 
const void download (bool blocking=false)
 
std::string fragment () const
 
const std::string getInContent (bool forceReload=false)
 
const std::string getInHeaderField (const std::string &key)
 
const std::map< std::string, std::string > getInHeaderFields ()
 
const std::string getStatusCode () const
 
const std::string getStatusMessage () const
 
std::string host () const
 
bool isAbsolute () const
 
void normalize ()
 
 operator Data () const
 
 operator std::string () const
 
std::string path () const
 
std::list< std::string > pathComponents () const
 
std::string port () const
 
std::map< std::string, std::string > query () const
 
void removeMonitor (URLMonitor *monitor)
 
std::string scheme () const
 
void setOutContent (const std::string &content)
 
void setRequestType (URLRequestType requestType)
 
std::string userInfo () const
 

Static Public Member Functions

static URL refer (URLImpl *absoluteSource, URLImpl *absoluteBase)
 
static URL resolve (URLImpl *relativeURL, URLImpl *absoluteURL)
 
static URL resolveWithCWD (URLImpl *relativeURL)
 

Protected Member Functions

void downloadCompleted ()
 
void downloadFailed (int errorCode)
 
void downloadStarted ()
 
void * getCurlHandle ()
 

Static Protected Member Functions

static size_t headerHandler (void *ptr, size_t size, size_t nmemb, void *userdata)
 
static void prepareException (ErrorEvent &exception, int errorCode, const std::string &origUri, void *parser)
 
static size_t writeHandler (void *ptr, size_t size, size_t nmemb, void *userdata)
 

Protected Attributes

std::condition_variable_any _condVar
 
std::string _error
 
void * _handle = NULL
 
bool _hasFailed = false
 
std::map< std::string, std::string > _inHeaders
 
bool _isDownloaded = false
 
std::set< URLMonitor * > _monitors
 
std::recursive_mutex _mutex
 
std::string _orig
 
std::string _outContent
 
std::map< std::string, std::string > _outHeader
 
std::stringstream _rawInContent
 
std::stringstream _rawInHeader
 
URLRequestType _requestType
 
std::string _statusCode
 
std::string _statusMsg
 
void * _uri = NULL
 

Friends

class URLFetcher
 

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