|
Public Member Functions |
| | URL () |
| | Default constructor.
|
| | URL (const std::string &url) throw (InvalidURL,NetDbError) |
| | Parse URL constructor.
|
| | URL (const URL &url) |
| | ~URL () |
| const std::string & | protocol () const |
| void | setProtocol (const std::string &proto, bool setPort=true) |
| const std::string & | host () const |
| void | setHost (const std::string &host) |
| const std::string & | user () const |
| void | setUser (const std::string &user) |
| const std::string & | password () const |
| void | setPassword (const std::string &passwd) |
| unsigned short | port () const |
| void | setPort (unsigned short port) |
| const std::string & | path () const |
| void | setPath (const std::string &path) |
| URL & | operator= (const URL &url) |
| URL & | operator= (const std::string &url) throw (InvalidURL,NetDbError) |
| bool | operator== (const URL &url) const |
| std::string | str () const |
Friends |
| PNET_EXPORT friend std::ostream & | operator<< (std::ostream &os, const URL &url) |
| PNET_EXPORT friend std::istream & | operator>> (std::istream &is, URL &url) throw (InvalidURL) |
This class is used to parse and store uniform resource locators. When storing a URL with password the password will not be printed out by the operator<< but can be retrieved via password().