com.googlecode.sardine
Class DavResource

java.lang.Object
  extended by com.googlecode.sardine.DavResource

public class DavResource
extends java.lang.Object

Describes a resource on a remote server. This could be a directory or an actual file.

Author:
jonstevens

Constructor Summary
DavResource(java.lang.String baseUrl, java.lang.String name, java.util.Date creation, java.util.Date modified, java.lang.String contentType, java.lang.Long contentLength)
          Represents a webdav response block.
 
Method Summary
 java.lang.String getAbsoluteUrl()
          Absolute url to the resource.
 java.lang.String getBaseUrl()
           
 java.lang.Long getContentLength()
           
 java.lang.String getContentType()
           
 java.util.Date getCreation()
           
 java.util.Date getModified()
           
 java.lang.String getName()
          A URLEncoded version of the name as returned by the server.
 java.lang.String getNameDecoded()
          A URLDecoded version of the name.
 boolean isDirectory()
          Does this resource have a contentType of httpd/unix-directory?
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DavResource

public DavResource(java.lang.String baseUrl,
                   java.lang.String name,
                   java.util.Date creation,
                   java.util.Date modified,
                   java.lang.String contentType,
                   java.lang.Long contentLength)
Represents a webdav response block.

Parameters:
baseUrl -
name - the name of the resource, with all /'s removed
creation -
modified -
contentType -
Method Detail

getBaseUrl

public java.lang.String getBaseUrl()

getName

public java.lang.String getName()
A URLEncoded version of the name as returned by the server.


getNameDecoded

public java.lang.String getNameDecoded()
A URLDecoded version of the name.


getCreation

public java.util.Date getCreation()

getModified

public java.util.Date getModified()

getContentType

public java.lang.String getContentType()

getContentLength

public java.lang.Long getContentLength()

getAbsoluteUrl

public java.lang.String getAbsoluteUrl()
Absolute url to the resource.


isDirectory

public boolean isDirectory()
Does this resource have a contentType of httpd/unix-directory?


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010 Jon Stevens and a gang of smelly fish. All Rights Reserved. Build version: 39