class Directory

A Directory object contains a string representation of a URL.

Inheritance:


Public Methods

[more] Directory ()
Default constructor
[more] Directory (const string& url)
[more] ~Directory ()
[more]void operator= (const Directory& dir)
[more]const string& toString () const
[more]bool operator== (const Directory& dir) const
[more]bool parseDir (URL& url) const
[more]void writeObject (AkentiOutputStream& drain) const
[more]void readObject (AkentiInputStream& source)
[more]void toXML (DOMElement* dir) const
Populates the XML element dir from this Directory
[more]void fromXML (const DOMElement* dir)
Initializes this Directory from the XML element dir
[more]string paramString () const
Used for debugging.


Inherited from AkentiObject:


Documentation

A Directory object contains a string representation of a URL. It was introduced in addition to the URL class for two reasons.

1) Policy and UseConditition Certificates contain urls pointing to directories in which to search for other certificates. Since these urls are contained in the signable part of a certificate, we must maintain the exact string representation of the url.

Example: "http://hostname:8080/filename "http://hostname:80/filename/ "http://hostname/filename/ The URL class can parse this but the URL.toString() will not return the exact string. Should it?

2) A URLHandler may not be installed. And not being able to parse a particular url should not trigger an exception when reading a certificate.

3) A Directory object provides us a cleaner and a more flexible solution for the future.

o Directory()
Default constructor

o Directory(const string& url)

o ~Directory()

ovoid operator=(const Directory& dir)

oconst string& toString() const

obool operator==(const Directory& dir) const

obool parseDir(URL& url) const

ovoid writeObject(AkentiOutputStream& drain) const

ovoid readObject(AkentiInputStream& source)

ovoid toXML(DOMElement* dir) const
Populates the XML element dir from this Directory

ovoid fromXML(const DOMElement* dir)
Initializes this Directory from the XML element dir

ostring paramString() const
Used for debugging.

Returns:
a string representation of this object
See Also:
AkentiObject


This class has no child classes.
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/05/01
See Also:
AkentiObject
URL

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.