Table of Contents

OIL2 Class Standard.HTTPreplacedText


class Standard . HTTPreplacedText {
} inherits from HTTPcachedObject;

DESCRIPTION

The HTTPcachedFile class implements the standard means for caching dynamically generated data that is to be provided via the HTTPdaemon.

METHODS


Standard.HTTPreplacedText:create

HTTPreplacedText:create(oid urlDir, string pageData, string mimeType, assoc substitutions, string name)

Method Description

See initialize.


Standard.HTTPreplacedText:initialize

HTTPreplacedText:initialize(oid urlDir, string pageData, string mimeType, assoc substitutions, string name, optional any validForSeconds)

Method Description

The create method takes a minimum of 4 arguments.

The fifth and any additional arguments are strings. Each represents a name under which the cached object will be registered with the URLdirectory by some external entity.

Notes

A HTTPcachedFile does not actually register itself with the URLdirectory. This must be performed by the application that creates the HTTPcachedFile object. This provides the opportunity to control when a cached object becomes visible. The names are recorded so that when the HTTPcachedFile object is deleted, the appropriate entries can be unregistered with the URLdirectory.


Generated: Wed, 14 Mar 2012 02:52:23 EDT
Support Information