public void handleDAVResponse(DAVResponse child) { String href = child.getHref(); String name = ""; if (parentPathSegments != SVNPathUtil.getSegmentsCount(href)) { name = SVNEncodingUtil.uriDecode(SVNPathUtil.tail(href)); } SVNNodeKind kind = SVNNodeKind.FILE; Object revisionStr = child.getPropertyValue(DAVElement.VERSION_NAME); long lastRevision = Long.parseLong(revisionStr.toString()); String sizeStr = (String) child.getPropertyValue(DAVElement.GET_CONTENT_LENGTH); long size = sizeStr == null ? 0 : Long.parseLong(sizeStr); if (child.getPropertyValue(DAVElement.RESOURCE_TYPE) == DAVElement.COLLECTION) { kind = SVNNodeKind.DIR; } String author = (String) child.getPropertyValue(DAVElement.CREATOR_DISPLAY_NAME); String dateStr = (String) child.getPropertyValue(DAVElement.CREATION_DATE); Date date = dateStr != null ? SVNTimeUtil.parseDate(dateStr) : null; if ("".equals(name)) { parent[0] = new SVNDirEntry(name, kind, size, false, lastRevision, date, author); } else { entries.add(new SVNDirEntry(name, kind, size, false, lastRevision, date, author)); vccs.add(child.getPropertyValue(DAVElement.VERSION_CONTROLLED_CONFIGURATION)); } }
public void handleDAVResponse(DAVResponse response) { DAVUtil.filterProperties(response, properties); for(Iterator props = response.properties(); props.hasNext();) { DAVElement property = (DAVElement) props.next(); if (property == DAVElement.VERSION_NAME) { properties.put(SVNProperty.COMMITTED_REVISION, response.getPropertyValue(property)); } else if (property == DAVElement.CREATOR_DISPLAY_NAME) { properties.put(SVNProperty.LAST_AUTHOR, response.getPropertyValue(property)); } else if (property == DAVElement.CREATION_DATE) { properties.put(SVNProperty.COMMITTED_DATE, response.getPropertyValue(property)); } } }
                public void handleDAVResponse(DAVResponse child) {                    String href = child.getHref();                    String name = "";                    if (parentPathSegments != SVNPathUtil.getSegmentsCount(href)) {                        name = SVNEncodingUtil.uriDecode(SVNPathUtil.tail(href));                    }                    SVNNodeKind kind = SVNNodeKind.FILE;                    Object revisionStr = child.getPropertyValue(DAVElement.VERSION_NAME);                    long lastRevision = Long.parseLong(revisionStr.toString());                    String sizeStr = (String) child.getPropertyValue(DAVElement.GET_CONTENT_LENGTH);                    long size = sizeStr == null ? 0 : Long.parseLong(sizeStr);                    if (child.getPropertyValue(DAVElement.RESOURCE_TYPE) == DAVElement.COLLECTION) {                        kind = SVNNodeKind.DIR;                    }                    String author = (String) child.getPropertyValue(DAVElement.CREATOR_DISPLAY_NAME);                    String dateStr = (String) child.getPropertyValue(DAVElement.CREATION_DATE);                    Date date = dateStr != null ? SVNTimeUtil.parseDate(dateStr) : null;                    if ("".equals(name)) {                        parent[0] = new SVNDirEntry(name, kind, size, false, lastRevision, date, author);                    } else {                        entries.add(new SVNDirEntry(name, kind, size, false, lastRevision, date, author));                        vccs.add(child.getPropertyValue(DAVElement.VERSION_CONTROLLED_CONFIGURATION));                    }                }