Class ITHit.WebDAV.Client.Resource

Extends ITHit.WebDAV.Client.HierarchyItem

class ITHit.WebDAV.Client.Resource
Represents a resource (file) on a WebDAV server.
Defined in ITHitWebDAVClient.js

Property Summary
Integer ContentLength
Length of the resource.
String ContentType
Content type of the resource.

Properties inherited from ITHit.WebDAV.Client.HierarchyItem

Function Summary
CancelUpload([String sLockToken])
Cancel resource upload.
String ReadContent([Object iBytesFrom], [Object iBytesCount])
Read file content.
WriteContent(String sContent, String sLockToken, String sMimeType)
Write to file.

Functions inherited from ITHit.WebDAV.Client.HierarchyItem

Property Details

property Integer ContentLength

Length of the resource.

property String ContentType

Content type of the resource.

Function Details

function CancelUpload

CancelUpload([String sLockToken])
Cancel resource upload.
Parameters:
sLockToken (optional) Item's lock token.

function ReadContent

String ReadContent([Object iBytesFrom], [Object iBytesCount])
Read file content.
Parameters:
iBytesFrom (optional) Offset bytes from file beginning.
iBytesCount (optional) Count of bytes to read.
Returns:
Requested file content.

function WriteContent

WriteContent(String sContent, String sLockToken, String sMimeType)
Write to file.
Parameters:
sContent File content.
sLockToken Lock token.
sMimeType File mime-type.
Throws:
ITHit.WebDAV.Client.Exceptions.WebDavHttpExceptionContent is not writtened to file.