PEPmodel Extensions PEPmodel Library PEPmodel documentation PEPmodel

PEP Extensions

Examples

Types

For network security reasons, it may be usefull to categorize extensions according to their purpose and allowed actions.

Reasons

There are different reasons an extension may be called to map itself into a message or supply meta information about itself. The most common of these are likely to be:

Other protocols may be invoked for many reasons. For instance, the server may elect to map a resource because of the state of some system resources. It is unlikely that the standard interface will able to support dynamic loading of these, so they would only be using the mapping collision advantages of PEP.

Downloading

PEPExtensions may be downloaded:

Locating the extension

PEP extensions are uniquely identified by the URI. PEPsample extensions may be located by inserting "PEPsample" after the last segment of the URI. For instance, a description of the compressions simulation http://www.w3.org/PEP/extensions/EscapeBody could be located by requesting that URL. The PEPsample implementations of that extension are located in the directory http://www.w3.org/PEP/extensions/EscapeBody/PEPsample/. The PEPAgent downloads the classes for its role, for example, the PEPClient will download the class http://www.w3.org/PEP/extensions/EscapeBody/Client.class.

Associated classes

Most extensions will have at least an instance class in addition to seperate classes for the client, proxy, and server. during downloading, the URLClassLoader calls java.lang.ClassLoader.resolveClass. This insures that any other classes associated with the extension will be downloaded too. These classes may be located anywhere underneath the extensions directory. For instance, http://www.w3.org/PEP/extensions/EscapeBody/Client.class may make a reference to http://www.w3.org/PEP/extensions/Escape/EscapeStream.class.


Eric Prud'hommeaux, eric@w3.org,
@(#) $Id: Overview.html,v 1.2 1997/08/03 00:39:03 eric Exp $