Details on WebDAV resource properties for SLIDE
This document aims to provide more information concerning property data used by SLIDE for resources. This is useful if you want to provide a custom dynamic listing of resources with your application.
Example
#WebDAV properties #Wed Nov 10 11:01:46 PST 2004 DAV\:getetag=5822c7f1048d26267e8ab88d57712eff DAV\:source= DAV\:owner=root DAV\:getcontentlanguage=en DAV\:getlastmodified=Wed, 10 Nov 2004 19\:01\:46 GMT DAV\:resourcetype= DAV\:getcontentlength=0 DAV\:getcontenttype=application/pdf DAV\:modificationdate=2004-11-10T19\:01\:46Z DAV\:creationdate=2004-11-10T19\:01\:46Z DAV\:modificationuser=root DAV\:displayname=._Transcript_form.pdf DAV\:creationuser=root
Property Listing
getetag
ETags (HTTP Entity Tag) are used to determine if a resource's content has changed. More specifically clients use ETags to determine if they are accessing the latest version of a resource. It prevents a client (user) from overwriting another client's changes to a specific resource. It also helps avoid unneccesary downloads. This property value is required
Example Scenario: Client X accesses a resource to update.
Client X accesses an ETag value of the resource.
Client Y accesses a the same resource that Client X is accesses.
Client Y accesses an ETag value of the resource (same as Client X's version of the ETag value).
Client X makes changes to the resource's data.
Before saving Client X checks to see if his ETag value still matches the ETag value on the server.
Both ETags match and the save is successful. The resource now has a new ETag value
Client Y makes changes to the resource's data (his changes do not include Client X's changes).
Before saving Client Y checks to see if his ETag value still matches the ETag value on the server.
Both ETags do not match. The save is not successful.
source
This property only pertains to dynamic resources (generated on the fly per request) and not static resources. The source property contains one to multiple url links that will be used to generate the dynamic resource. It is not known outside the Slide developer group how much of the source property Slide supports.
resourcetype
This property is used to differentiate between regular resources (files) and collections (folders).
getlastmodified
This has the date value of when the resource was last modified.
getcontenttype
This property holds the value of the type of file a resource is (text, jpg, word doc, pdf, ...). This value is typically created on the PUT rquest by the client.
getcontentlength
This property is the integer value of the resource (file) size. This may not be accurate for dynamic resources (such as JSPs).
getcreationdate
This property contains the date when a resource was created.
displayname
This value is what the resource identifier is shown to the user / client.
getcontentlanguage
The default value is en - for English.