Archon::Utilities::UriReference Class Reference

UriReference represents a URI reference as defined in RFC 2396. More...

#include <archon/util/uri.H>

Collaboration diagram for Archon::Utilities::UriReference:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 UriReference ()
 Create a URI reference that refers to the current working directory.
 UriReference (const string &uriReference, const UriReference &baseReference=UriReference())
 Construct a URI Reference from a relative or absolute string representation.
Uri getUri () const
string getFragmentIdentifier () const
 Will typically return something like 'foobar' but may also return '#' or even the empty string.
string toString () const

Detailed Description

UriReference represents a URI reference as defined in RFC 2396.

That is, a URI optionally followed by a fragment identifier.

An example of a URI reference is: http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.2

Definition at line 169 of file uri.H.


Constructor & Destructor Documentation

Archon::Utilities::UriReference::UriReference const string &  uriReference,
const UriReference baseReference = UriReference()
 

Construct a URI Reference from a relative or absolute string representation.

If the reference is relative (or empty) it is resolved against the specified base URI.

Throws Uri::SyntaxException if the argument is malformed.

Todo:
Either Uri::SyntaxException must be declared to be thrown or another sollution must be sought.

Definition at line 801 of file uri.C.

References fragmentIdentifier, and uri.


The documentation for this class was generated from the following files:
Generated on Sun Jul 30 22:58:03 2006 for Archon by  doxygen 1.4.4