Table of Contents

OIL2 Class Standard.HTTPreplacedText

class Standard . HTTPreplacedText {
inherits from HTTPcachedObject;


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



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

Method Description

See 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.


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.