|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.japisoft.webdavbrowser.WEBDAVResourceManager
This is a delegated for managing WebDAV content. Reset the proxyHost and
proxyPort System property if needed calling System.setProperty...
ResourceManager| Constructor Summary | |
WEBDAVResourceManager()
|
|
| Method Summary | |
java.lang.String |
connect(java.lang.String host,
java.lang.String user,
java.lang.String password)
Open a connection to a server or a specific resource. |
void |
deleteFile(ResourceItem item)
Delete a file or an empty directory for this path |
void |
disconnect()
Close the current connection |
byte[] |
getContent(ResourceItem item)
|
boolean |
isConnectionSupported()
|
boolean |
isLockSupported()
|
ResourceItemModel |
list(ResourceItem item)
List a directory |
void |
lock(ResourceItem item,
boolean locked)
Lock this resource located at the path. |
void |
renameFile(ResourceItem item,
java.lang.String newPathName)
Rename a file name to another one. |
void |
setContent(ResourceItem item,
byte[] content)
Reset a content located at this path |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WEBDAVResourceManager()
| Method Detail |
public java.lang.String connect(java.lang.String host,
java.lang.String user,
java.lang.String password)
throws ResourceException
ResourceManager
connect in interface ResourceManagerhost - The Remove server IP locationuser - The user account namepassword - The user password name
ResourceException - If the connection cannot be openedpublic void disconnect()
ResourceManager
disconnect in interface ResourceManager
public ResourceItemModel list(ResourceItem item)
throws ResourceException
ResourceManager
list in interface ResourceManageritem - A directory
ResourceException - If the listing is not possible
public byte[] getContent(ResourceItem item)
throws ResourceException
getContent in interface ResourceManageritem - A location for a file
java.lang.String
ResourceException - If the file cannot be downloaded
public void setContent(ResourceItem item,
byte[] content)
throws ResourceException
ResourceManager
setContent in interface ResourceManageritem - A file locationcontent - A new content
ResourceException - If the file cannot be updated
public void deleteFile(ResourceItem item)
throws ResourceException
ResourceManager
deleteFile in interface ResourceManageritem - A file or an empty directory location
ResourceException - If the file cannot be deleted
public void renameFile(ResourceItem item,
java.lang.String newPathName)
throws ResourceException
ResourceManager
renameFile in interface ResourceManageritem - A file or a directorynewPathName - A new name
ResourceException - If the file or the directory cannot be renammed
public void lock(ResourceItem item,
boolean locked)
throws ResourceException
ResourceManagerisLockSupported method returns true
lock in interface ResourceManageritem - A file or a directorylocked - true for locking the resource path
ResourceException - If the file cannot be lockedpublic boolean isLockSupported()
isLockSupported in interface ResourceManagertrue if the file lock if supportedpublic boolean isConnectionSupported()
isConnectionSupported in interface ResourceManager if an host, user and password is required before browing a content
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||