com.googlecode.sardine
Interface Sardine

All Known Implementing Classes:
SardineImpl

public interface Sardine

The main interface for Sardine operations.

Author:
jonstevens

Method Summary
 void copy(java.lang.String sourceUrl, java.lang.String destinationUrl)
          Copy a url from source to destination.
 void createDirectory(java.lang.String url)
          Uses webdav to create a directory at the specified url
 void delete(java.lang.String url)
          Delete a resource at the specified url
 java.io.InputStream getInputStream(java.lang.String url)
          Uses HttpGet to get an input stream for a url
 java.util.List<DavResource> getResources(java.lang.String url)
          Gets a directory listing.
 void move(java.lang.String sourceUrl, java.lang.String destinationUrl)
          Move a url to from source to destination.
 void put(java.lang.String url, byte[] data)
          Uses webdav put to send data to a server
 

Method Detail

getResources

java.util.List<DavResource> getResources(java.lang.String url)
                                         throws SardineException
Gets a directory listing.

Throws:
SardineException

getInputStream

java.io.InputStream getInputStream(java.lang.String url)
                                   throws SardineException
Uses HttpGet to get an input stream for a url

Throws:
SardineException

put

void put(java.lang.String url,
         byte[] data)
         throws SardineException
Uses webdav put to send data to a server

Throws:
SardineException

delete

void delete(java.lang.String url)
            throws SardineException
Delete a resource at the specified url

Throws:
SardineException

createDirectory

void createDirectory(java.lang.String url)
                     throws SardineException
Uses webdav to create a directory at the specified url

Throws:
SardineException

move

void move(java.lang.String sourceUrl,
          java.lang.String destinationUrl)
          throws SardineException
Move a url to from source to destination. Assumes overwrite.

Throws:
SardineException

copy

void copy(java.lang.String sourceUrl,
          java.lang.String destinationUrl)
          throws SardineException
Copy a url from source to destination. Assumes overwrite.

Throws:
SardineException


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