WebdavResources resources = getMe().getChildResources(); Enumeration enumer = resources.getResources(); children = new Vector(); childrenCount = 0; while (enumer.hasMoreElements()) { WebdavExtendedResource element = (WebdavExtendedResource) enumer.nextElement(); if (element.isCollection()) { WebDAVBean bean = new WebDAVBean(element); children.add(bean); ++childrenCount; } }
if (getMe() != null) { WebdavResources resources = getMe().getChildResources(); Enumeration enumer = resources.getResources(); children = new Vector(); childrenCount = 0; while (enumer.hasMoreElements()) { WebdavExtendedResource element = (WebdavExtendedResource) enumer.nextElement(); if (element.isCollection()) { WebDAVBean bean = new WebDAVBean(element); children.add(bean); ++childrenCount; } } } else { children = new Vector(); childrenCount = 0; }
	public Collection getChildren() {		try {			if (children == null) {				WebdavResources resources = getMe().getChildResources();	  		Enumeration enumer = resources.getResources();	  		children = new Vector();	  		childrenCount = 0; 	  		while (enumer.hasMoreElements()) {	  			WebdavExtendedResource element = (WebdavExtendedResource) enumer.nextElement();	  			if (element.isCollection()) {	  				WebDAVBean bean = new WebDAVBean(element);	    			children.add(bean);	    			++childrenCount;	  			}	  		}			} 			return children;		} catch (HttpException e) {			e.printStackTrace();		} catch (IOException e) {			e.printStackTrace();		}		return null;	}