com.atlassian.confluence.util
Class WebDavUtils

java.lang.Object
  extended by com.atlassian.confluence.util.WebDavUtils

public abstract class WebDavUtils
extends java.lang.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 java.util.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(java.lang.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 java.util.List getVersionsOfResource(org.apache.webdav.lib.WebdavResource wdr)
                                            throws java.io.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:
java.io.IOException

uriToHttpURL

public static org.apache.commons.httpclient.HttpURL uriToHttpURL(java.lang.String uri)
                                                          throws org.apache.commons.httpclient.URIException
Throws:
org.apache.commons.httpclient.URIException


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.