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.

Author:
jonstevens

Constructor Summary
SardineImpl(Factory factory)
           
SardineImpl(Factory factory, java.lang.String username, java.lang.String password)
           
 
Method Summary
 void delete(java.lang.String url)
          Uses webdav put to delete 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 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 java.io.IOException
Description copied from interface: Sardine
Gets a directory listing.

Specified by:
getResources in interface Sardine
Throws:
java.io.IOException

getInputStream

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

Specified by:
getInputStream in interface Sardine
Throws:
java.io.IOException

put

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

Specified by:
put in interface Sardine
Throws:
java.io.IOException

delete

public void delete(java.lang.String url)
            throws java.io.IOException
Description copied from interface: Sardine
Uses webdav put to delete url

Specified by:
delete in interface Sardine
Throws:
java.io.IOException


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