com.atlassian.confluence.util
Class WebDavUtils
java.lang.Object
com.atlassian.confluence.util.WebDavUtils
public abstract class WebDavUtils
- extends Object
Collection of utility methods for working with a webDAV server
This isn't used at the moment, because it's broken!!!
Method Summary |
static List |
getVersionsOfResource(org.apache.webdav.lib.WebdavResource wdr)
Returns a list of paths for each version of a webDAV resource in order from oldest to newest
Needed as WebdavResource.reportMethod() does not preserve the order of results (uses a hashmap) |
static HttpURL |
uriToHttpURL(String uri)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebDavUtils
public WebDavUtils()
getVersionsOfResource
public static List getVersionsOfResource(org.apache.webdav.lib.WebdavResource wdr)
throws IOException
- Returns a list of paths for each version of a webDAV resource in order from oldest to newest
Needed as WebdavResource.reportMethod() does not preserve the order of results (uses a hashmap)
- Parameters:
wdr
- any resource connected to a webDAV server
- Returns:
- list of version path strings
- Throws:
IOException
uriToHttpURL
public static HttpURL uriToHttpURL(String uri)
throws URIException
- Throws:
URIException