com.googlecode.sardine
Class SardineImpl

java.lang.Object
  extended by com.googlecode.sardine.SardineImpl
All Implemented Interfaces:
Sardine

public class SardineImpl
extends java.lang.Object
implements Sardine

Implementation of the Sardine interface. This is where the meat of the Sardine library lives.

Author:
jonstevens

Constructor Summary
SardineImpl(Factory factory)
           
SardineImpl(Factory factory, java.lang.String username, java.lang.String password)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SardineImpl

public SardineImpl(Factory factory)

SardineImpl

public SardineImpl(Factory factory,
                   java.lang.String username,
                   java.lang.String password)
Method Detail

getResources

public java.util.List<DavResource> getResources(java.lang.String url)
                                         throws SardineException
Description copied from interface: Sardine
Gets a directory listing.

Specified by:
getResources in interface Sardine
Throws:
SardineException

getInputStream

public java.io.InputStream getInputStream(java.lang.String url)
                                   throws SardineException
Description copied from interface: Sardine
Uses HttpGet to get an input stream for a url

Specified by:
getInputStream in interface Sardine
Throws:
SardineException

put

public void put(java.lang.String url,
                byte[] data)
         throws SardineException
Description copied from interface: Sardine
Uses webdav put to send data to a server

Specified by:
put in interface Sardine
Throws:
SardineException

delete

public void delete(java.lang.String url)
            throws SardineException
Description copied from interface: Sardine
Delete a resource at the specified url

Specified by:
delete in interface Sardine
Throws:
SardineException

move

public void move(java.lang.String sourceUrl,
                 java.lang.String destinationUrl)
          throws SardineException
Description copied from interface: Sardine
Move a url to from source to destination. Assumes overwrite.

Specified by:
move in interface Sardine
Throws:
SardineException

copy

public void copy(java.lang.String sourceUrl,
                 java.lang.String destinationUrl)
          throws SardineException
Description copied from interface: Sardine
Copy a url from source to destination. Assumes overwrite.

Specified by:
copy in interface Sardine
Throws:
SardineException

createDirectory

public void createDirectory(java.lang.String url)
                     throws SardineException
Description copied from interface: Sardine
Uses webdav to create a directory at the specified url

Specified by:
createDirectory in interface Sardine
Throws:
SardineException


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