Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

VOS::URL Class Reference

A class implementing basic handling of Uniform Resource Locator (URL) expressions. More...

#include <vos/corelibs/vos/url.hh>

List of all members.

Public Member Functions

Static Public Member Functions


Detailed Description

A class implementing basic handling of Uniform Resource Locator (URL) expressions.

Definition at line 42 of file url.hh.


Constructor & Destructor Documentation

URL::URL  ) 
 

Construct a URL using the default fields.

Definition at line 51 of file url.cc.

URL::URL const string &  protocol,
const string &  host,
const string &  port,
const string &  path
 

Construct a URL using the supplied fields.

Parameters:
protocol the protocol field
host the host field
port the port field
path everything after the port

Definition at line 59 of file url.cc.

URL::URL const string &  url  )  throw (BadURLError)
 

Construct a URL by parsing the supplied URL string.

Empty fields will be filled in using the default if they are not found!

Parameters:
url a URL in the usual form ("protocol://host:port/path")
Exceptions:
BadURLError if

Definition at line 69 of file url.cc.


Member Function Documentation

const string & URL::getHost  )  const
 

Returns:
the host field

Definition at line 147 of file url.cc.

const string & URL::getHostAndPort  )  const
 

Returns:
the host and port in the form "host:port"

Definition at line 150 of file url.cc.

Referenced by VOS::Vobject::findObjectFromRoot(), VOS::AsyncConnect::operator()(), and VOS::RemoteSite::sendUpdateMessage().

const string & URL::getPath  )  const
 

Returns:
the path field

Definition at line 149 of file url.cc.

Referenced by VOS::Vobject::findObjectFromRoot(), and VOS::RemoteSite::sendUpdateMessage().

const string & URL::getPort  )  const
 

Returns:
the port field

Definition at line 148 of file url.cc.

const string & URL::getProtocol  )  const
 

Returns:
the protocol field

Definition at line 146 of file url.cc.

const string & URL::getString  )  const
 

Get a string representation of the URL in the usual form ("protocol://host:port/path").

Returns:
the URL string

Definition at line 151 of file url.cc.

Referenced by VOS::RewriteTo::checkMessage(), VOS::VobjectImplementation::excise(), VOS::RemoteVobject::initFields(), VOS::RemoteSite::notifyChildInserted(), VOS::RemoteSite::notifyChildRemoved(), VOS::RemoteSite::notifyChildReplaced(), VOS::RemoteSite::notifyParentInserted(), VOS::RemoteSite::notifyParentRemoved(), VOS::RemoteSite::notifyTypeInserted(), VOS::RemoteSite::notifyTypeRemoved(), VOS::RemoteSite::unlockChildNotifyOutgoing(), VOS::RemoteSite::unlockParentNotifyOutgoing(), VOS::RemoteSite::unlockTypeNotifyOutgoing(), and VOS::VobjectImplementation::~VobjectImplementation().

void URL::setDefaults const URL url  )  [static]
 

Set a URL object used to supply default fields used by the constructors.

Parameters:
url an already-initialized URL object

Definition at line 46 of file url.cc.

void URL::setHost const string &  h  ) 
 

Parameters:
h set the host field

Definition at line 154 of file url.cc.

Referenced by VOS::AsyncConnect::operator()().

void URL::setHostAndPort const string &  hp  ) 
 

Parameters:
hp set the host and port fields together, supplied in the form "host:port"

Definition at line 158 of file url.cc.

Referenced by VOS::RewriteTo::checkMessage().

void URL::setPath const string &  p  ) 
 

Parameters:
p set the path field

Definition at line 156 of file url.cc.

Referenced by VOS::VobjectImplementation::VobjectImplementation().

void URL::setPort const string &  p  ) 
 

Parameters:
p set the port field

Definition at line 155 of file url.cc.

void URL::setProtocol const string &  p  ) 
 

Parameters:
p set the protocol field

Definition at line 153 of file url.cc.


The documentation for this class was generated from the following files:
Generated on Tue Aug 12 03:56:07 2003 for Interreality Project - VOS by doxygen 1.3.2