zeus::TURI Class Reference

#include <URI.h>

Inheritance diagram for zeus::TURI:

zeus::TZObject zeus::IZUnknown

List of all members.

Public Member Functions

 TURI (const IString &rPath)
 TURI (TString strPath)
 TURI (const TURI &rURI)
virtual ~TURI ()
void assign (const TURI &rURI)
bool equals (const TURI &rURI) const
TString getAuthority () const
TString getHostName () const
TString getPath () const
Uint getPort () const
TString getProtocol () const
bool isValid () const
bool isEmpty () const
TString toString () const
bool operator== (const TURI &rURI) const
bool operator!= (const TURI &rURI) const
TURIoperator= (const TURI &rURI)

Protected Member Functions

void setAuthority (const IString &rValue)
void setHostName (const IString &rValue)
void setPath (const IString &rValue)
void setPort (Uint uiPort)
void setProtocol (const IString &rValue)


Detailed Description

This class implements an URI (Unified ressource identifier) according to the RFC 2396.

Constructor & Destructor Documentation

TURI::TURI ( const IString rPath  ) 

Creates the URI

Parameters:
rPath : whole path of the URI including protocol

TURI::TURI ( TString  strPath  ) 

Creates the URI

Parameters:
strPath : whole path of the URI including protocol

zeus::TURI::TURI ( const TURI rURI  )  [inline]

Copy constructor

zeus::TURI::~TURI (  )  [inline, virtual]

Destroys the URI


Member Function Documentation

void TURI::assign ( const TURI rURI  ) 

Assigns the parsed data of an URI

bool TURI::equals ( const TURI rURI  )  const

Checks if two URI are equal

TString zeus::TURI::getAuthority (  )  const [inline]

gets the authority of the URI

TString zeus::TURI::getHostName (  )  const [inline]

gets the authority of the URI

TString zeus::TURI::getPath (  )  const [inline]

gets the path of the URI

Uint zeus::TURI::getPort (  )  const [inline]

Returns the port of the authority string

TString zeus::TURI::getProtocol (  )  const [inline]

gets the protocol of the URI

bool zeus::TURI::isValid (  )  const [inline]

This returns true if the URI is valid. Note that this method does not check if the URI exists.

bool zeus::TURI::isEmpty (  )  const [inline]

Check if the URI is empty

TString zeus::TURI::toString (  )  const [inline]

Returns the whole URI as a string

Reimplemented from zeus::TZObject.

bool zeus::TURI::operator== ( const TURI rURI  )  const [inline]

equals operator

bool zeus::TURI::operator!= ( const TURI rURI  )  const [inline]

not equals operator

TURI & zeus::TURI::operator= ( const TURI rURI  )  [inline]

assign operator

void zeus::TURI::setAuthority ( const IString rValue  )  [inline, protected]

sets the Authority of the URI

void zeus::TURI::setHostName ( const IString rValue  )  [inline, protected]

sets the host name of the URI

void zeus::TURI::setPath ( const IString rValue  )  [inline, protected]

sets the path of the URI

void zeus::TURI::setPort ( Uint  uiPort  )  [inline, protected]

sets the port of the URI

void zeus::TURI::setProtocol ( const IString rValue  )  [inline, protected]

sets the protocol name (scheme)


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


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Wed Oct 28 21:42:33 2009