com.atlassian.confluence.util
Class WebDavUtils

java.lang.Object
  extended by 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!!!


Constructor Summary
WebDavUtils()
           
 
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 org.apache.commons.httpclient.HttpURL uriToHttpURL(String uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebDavUtils

public WebDavUtils()
Method Detail

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 org.apache.commons.httpclient.HttpURL uriToHttpURL(String uri)
                                                          throws org.apache.commons.httpclient.URIException
Throws:
org.apache.commons.httpclient.URIException


Copyright © 2003-2011 Atlassian. All Rights Reserved.