| java.lang.Object org.apache.cocoon.components.webdav.WebDAVUtil
WebDAVUtil | public class WebDAVUtil (Code) | | A utility for WebDAV.
|
Method Summary | |
public static void | copyResource(String from, String to, boolean recurse, boolean overwrite) | public static void | createResource(String uri, String content) | public static List | getAllProperties(String uri) | public static Map | getProperties(String uri, Set propNames) | public static SourceProperty | getProperty(String uri, String name, String namespace) | public static synchronized WebdavResource | getWebdavResource(String uri) | public static void | makeCollection(String parent, String collection) | public static void | makePath(String path) | public static void | moveResource(String from, String to, boolean recurse, boolean overwrite) | public static void | setProperties(String uri, Map properties) | public static void | setProperty(String uri, String name, String namespace, String value) |
copyResource | public static void copyResource(String from, String to, boolean recurse, boolean overwrite) throws HttpException, IOException(Code) | | copy a WebDAV resource
Parameters: from - the URI of the resource to copy Parameters: to - the URI of the destination Parameters: overwrite - if true overwrites the destination Parameters: recurse - if true recursively creates parent collections if not existant throws: HttpException - throws: IOException - |
createResource | public static void createResource(String uri, String content) throws HttpException, IOException(Code) | | create a new resource on the server
Parameters: uri - the uri of the resource. Parameters: content - the content to initialize the resource with. throws: HttpException - throws: IOException - |
getAllProperties | public static List getAllProperties(String uri) throws HttpException, IOException(Code) | | get all properties for given uri
Parameters: uri - the URI to get the properties from throws: HttpException - throws: IOException - |
getProperties | public static Map getProperties(String uri, Set propNames) throws HttpException, IOException(Code) | | get multiple properties
Parameters: uri - the URI to get the properties from Parameters: propNames - the Set containing the properties to set throws: HttpException - throws: IOException - |
getProperty | public static SourceProperty getProperty(String uri, String name, String namespace) throws HttpException, IOException(Code) | | get a property
Parameters: uri - the URI to get the property from Parameters: name - the name of the property Parameters: namespace - the namespace of the property throws: HttpException - throws: IOException - |
getWebdavResource | public static synchronized WebdavResource getWebdavResource(String uri) throws HttpException, IOException(Code) | | instantiate a WebdavResource object from a given uri
Parameters: uri - the uri of the resource. throws: HttpException - throws: IOException - |
makeCollection | public static void makeCollection(String parent, String collection) throws HttpException, IOException(Code) | | create a collection
Parameters: parent - the uri of the parent collection Parameters: collection - the name of the collection to make throws: HttpException - throws: IOException - |
makePath | public static void makePath(String path) throws HttpException, IOException(Code) | | make the complete path of a given collection URI (including all parent collections)
Parameters: path - the URI of the collection to make throws: HttpException - throws: IOException - |
moveResource | public static void moveResource(String from, String to, boolean recurse, boolean overwrite) throws HttpException, IOException(Code) | | move a WebDAV resource
Parameters: from - the URI of the resource to move Parameters: to - the URI of the destination Parameters: overwrite - if true overwrites the destination Parameters: recurse - if true recursively creates parent collections if not existant throws: HttpException - throws: IOException - |
setProperties | public static void setProperties(String uri, Map properties) throws HttpException, IOException(Code) | | set multiple property
Parameters: uri - the URI of the resource to set the property on Parameters: properties - the Map containing the property values to set throws: HttpException - throws: IOException - |
setProperty | public static void setProperty(String uri, String name, String namespace, String value) throws HttpException, IOException(Code) | | set a property
Parameters: uri - the URI of the resource to set the property on Parameters: name - the name of the property Parameters: namespace - the namespace of the property Parameters: value - the new value of the property throws: HttpException - throws: IOException - |
|
|