W3C Jigsaw
All Resources All filters

FileResource

The basic resource to serve files. This resource allows you to export files, and can be configured to handle the HTTP PUT method.


Inherits

The FileResource class inherits from the following classes:


Attributes description

The FileResource defines the following attributes:


filename
semantics
The optional name of the file to be served by the file resource. By default, the file resource will serve the file's having the resource's name. You can define this attribute in order to change the URL to file mapping. E.g. you can serve the file foo.html through the name oof.html, by setting the foo.html filename attribute to off.html.
type
This attribute is a editable FilenameAttribute.
default value
This attribute is undefined by default.


putable
semantics
Should the file resource support PUT requets ? When this flag is true, the file resource object will handle appropriately the HTTP PUT method, by overriding the resource's file with the new content. The old content will be saved using the emacs convention (the ~ files). Care should be taken when turning this feature on: you probably want to use some authentication filter to ensure that only authors are allowed to change resources.
type
The attribute is an editable BooleanAttribute.
default value
This attribute defaults to false.


filestamp
semantics
The time at which the file resource checked that it was in sync with the underlying file.
type
This attribute is a computed, not editable DateAttribute.
default value
This attribite defaults to -1 (which means its undefined).


Jigsaw Team
$Id: w3c.jigsaw.resources.FileResource.html,v 1.2 1996/04/11 20:56:44 abaird Exp $