Public Member Functions

 URL (const std::string url)
 
void addMonitor (URLMonitor *monitor)
 
void addOutHeader (const std::string &key, const std::string &value)
 
const void download (bool blocking=false) const
 
std::string fragment ()
 
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 ()
 
bool isAbsolute ()
 
void normalize ()
 
 operator Data () const
 
 operator std::string ()
 
std::string path ()
 
std::list< std::string > pathComponents ()
 
 PIMPL_OPERATORS (URL)
 
std::string port ()
 
std::map< std::string, std::string > query ()
 
void removeMonitor (URLMonitor *monitor)
 
std::string scheme ()
 
void setOutContent (const std::string &content)
 
void setRequestType (URLRequestType requestType)
 
std::string userInfo ()
 

Static Public Member Functions

static std::string getResourceDir ()
 Get a persistant, shared directory for resources. More...
 
static std::string getTempDir (bool shared=true)
 Get a temporary, shared or private directory for resources. More...
 
static URL refer (URL absoluteSource, URL absoluteBase)
 
static URL resolve (URL relativeURL, URL absoluteURL)
 
static URL resolveWithCWD (URL relativeURL)
 

Protected Attributes

std::shared_ptr< URLImpl_impl
 

Static Protected Attributes

static std::string currTmpDir
 

Friends

class URLFetcher
 

Member Function Documentation

std::string uscxml::URL::getResourceDir ( )
static
Returns
A path to an existing directory for resources.
std::string uscxml::URL::getTempDir ( bool  shared = true)
static
Parameters
sharedWhether the temporary directory is shared among instances.
Returns
A path to an existing directory for temporary files.

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