|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.sardine.SardineImpl
public class SardineImpl
Implementation of the Sardine interface. This is where the meat of the Sardine library lives.
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 |
---|
public SardineImpl(Factory factory)
public SardineImpl(Factory factory, java.lang.String username, java.lang.String password)
Method Detail |
---|
public java.util.List<DavResource> getResources(java.lang.String url) throws SardineException
Sardine
getResources
in interface Sardine
SardineException
public java.io.InputStream getInputStream(java.lang.String url) throws SardineException
Sardine
getInputStream
in interface Sardine
SardineException
public void put(java.lang.String url, byte[] data) throws SardineException
Sardine
put
in interface Sardine
SardineException
public void delete(java.lang.String url) throws SardineException
Sardine
delete
in interface Sardine
SardineException
public void move(java.lang.String sourceUrl, java.lang.String destinationUrl) throws SardineException
Sardine
move
in interface Sardine
SardineException
public void copy(java.lang.String sourceUrl, java.lang.String destinationUrl) throws SardineException
Sardine
copy
in interface Sardine
SardineException
public void createDirectory(java.lang.String url) throws SardineException
Sardine
createDirectory
in interface Sardine
SardineException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |