Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

EdgReplicaManager::URI Class Reference

A simple URI class, incomplete but fits our needs. More...

List of all members.

Public Methods

 URI (const std::string &uri) throw (URIException)
 Constructor from string. More...

 URI (const std::string &scheme, const std::string &ssp) throw (URIException)
 Constructor from scheme, scheme-specific-part. More...

 URI (const std::string &scheme, const std::string &host, const std::string &path) throw (URIException)
 Constructor using scheme, host, path. More...

 URI (const std::string &scheme, const std::string &host, int port, const std::string &path) throw (URIException)
 Constructor using scheme, host, port, path. More...

virtual ~URI ()
 Standard virtual destructor. More...

std::string getHost () throw (URIException)
 return the host of the given URI. More...

std::string getScheme ()
 return the scheme of the given URI. More...

std::string getSchemeSpecificPart ()
 return the scheme-specific part of the given URI. More...

std::string getPath () throw (URIException)
 return the path of the given URI. More...

std::string toString ()
 return the string form of the URI. More...

int getPort ()
 return the port of the given URI. More...


Protected Attributes

std::string m_scheme
std::string m_host
std::string m_path
std::string m_ssp
int m_port
std::string m_str
bool m_haveHost
bool m_havePath


Detailed Description

A simple URI class, incomplete but fits our needs.


Constructor & Destructor Documentation

URI const std::string &    uri throw (URIException)
 

Constructor from string.

URI const std::string &    scheme,
const std::string &    ssp
throw (URIException)
 

Constructor from scheme, scheme-specific-part.

URI const std::string &    scheme,
const std::string &    host,
const std::string &    path
throw (URIException)
 

Constructor using scheme, host, path.

URI const std::string &    scheme,
const std::string &    host,
int    port,
const std::string &    path
throw (URIException)
 

Constructor using scheme, host, port, path.

virtual ~URI   [virtual]
 

Standard virtual destructor.


Member Function Documentation

std::string getHost   throw (URIException)
 

return the host of the given URI.

std::string getScheme  
 

return the scheme of the given URI.

std::string getSchemeSpecificPart  
 

return the scheme-specific part of the given URI.

std::string getPath   throw (URIException)
 

return the path of the given URI.

std::string toString  
 

return the string form of the URI.

int getPort  
 

return the port of the given URI.

returns -1 if not given.


Member Data Documentation

std::string m_scheme [protected]
 

std::string m_host [protected]
 

std::string m_path [protected]
 

std::string m_ssp [protected]
 

int m_port [protected]
 

std::string m_str [protected]
 

bool m_haveHost [protected]
 

bool m_havePath [protected]
 

The EU DataGrid Project. All rights reserved.