|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.components.webdav.WebDAVUtil
public class WebDAVUtil
A utility for WebDAV.
Constructor Summary | |
---|---|
WebDAVUtil()
|
Method Summary | |
---|---|
static void |
copyResource(String from,
String to,
boolean recurse,
boolean overwrite)
copy a WebDAV resource |
static void |
createResource(String uri,
String content)
create a new resource on the server |
static List |
getAllProperties(String uri)
get all properties for given uri |
static Map |
getProperties(String uri,
Set propNames)
get multiple properties |
static SourceProperty |
getProperty(String uri,
String name,
String namespace)
get a property |
static org.apache.webdav.lib.WebdavResource |
getWebdavResource(String uri)
instantiate a WebdavResource object from a given uri |
static void |
makeCollection(String parent,
String collection)
create a collection |
static void |
makePath(String path)
make the complete path of a given collection URI (including all parent collections) |
static void |
moveResource(String from,
String to,
boolean recurse,
boolean overwrite)
move a WebDAV resource |
static void |
setProperties(String uri,
Map properties)
set multiple property |
static void |
setProperty(String uri,
String name,
String namespace,
String value)
set a property |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebDAVUtil()
Method Detail |
---|
public static org.apache.webdav.lib.WebdavResource getWebdavResource(String uri) throws org.apache.commons.httpclient.HttpException, IOException
uri
- the uri of the resource.
org.apache.commons.httpclient.HttpException
IOException
public static void createResource(String uri, String content) throws org.apache.commons.httpclient.HttpException, IOException
uri
- the uri of the resource.content
- the content to initialize the resource with.
org.apache.commons.httpclient.HttpException
IOException
public static void copyResource(String from, String to, boolean recurse, boolean overwrite) throws org.apache.commons.httpclient.HttpException, IOException
from
- the URI of the resource to copyto
- the URI of the destinationoverwrite
- if true overwrites the destinationrecurse
- if true recursively creates parent collections if not existant
org.apache.commons.httpclient.HttpException
IOException
public static void moveResource(String from, String to, boolean recurse, boolean overwrite) throws org.apache.commons.httpclient.HttpException, IOException
from
- the URI of the resource to moveto
- the URI of the destinationoverwrite
- if true overwrites the destinationrecurse
- if true recursively creates parent collections if not existant
org.apache.commons.httpclient.HttpException
IOException
public static void makePath(String path) throws org.apache.commons.httpclient.HttpException, IOException
path
- the URI of the collection to make
org.apache.commons.httpclient.HttpException
IOException
public static void makeCollection(String parent, String collection) throws org.apache.commons.httpclient.HttpException, IOException
parent
- the uri of the parent collectioncollection
- the name of the collection to make
org.apache.commons.httpclient.HttpException
IOException
public static SourceProperty getProperty(String uri, String name, String namespace) throws org.apache.commons.httpclient.HttpException, IOException
uri
- the URI to get the property fromname
- the name of the propertynamespace
- the namespace of the property
org.apache.commons.httpclient.HttpException
IOException
public static Map getProperties(String uri, Set propNames) throws org.apache.commons.httpclient.HttpException, IOException
uri
- the URI to get the properties frompropNames
- the Set containing the properties to set
org.apache.commons.httpclient.HttpException
IOException
public static List getAllProperties(String uri) throws org.apache.commons.httpclient.HttpException, IOException
uri
- the URI to get the properties from
org.apache.commons.httpclient.HttpException
IOException
public static void setProperty(String uri, String name, String namespace, String value) throws org.apache.commons.httpclient.HttpException, IOException
uri
- the URI of the resource to set the property onname
- the name of the propertynamespace
- the namespace of the propertyvalue
- the new value of the property
org.apache.commons.httpclient.HttpException
IOException
public static void setProperties(String uri, Map properties) throws org.apache.commons.httpclient.HttpException, IOException
uri
- the URI of the resource to set the property onproperties
- the Map containing the property values to set
org.apache.commons.httpclient.HttpException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |