parentHref = href.substring(0, pos - 1);
} else {
parentHref = null;
}
Element el = elResponse.getChild("propstat", RespUtils.NS_DAV).getChild("prop", RespUtils.NS_DAV);
if (href.contains("/")) {
String[] arr = href.split("[/]");
if (arr.length > 0) {
name = arr[arr.length - 1];
} else {
name = "";
}
} else {
name = href;
}
String dn = RespUtils.asString(el, "displayname");
displayName = (dn == null) ? name : dn;
createdDate = RespUtils.asString(el, "creationdate");
modifiedDate = RespUtils.asString(el, "getlastmodified");
contentType = RespUtils.asString(el, "getcontenttype");
contentLength = RespUtils.asLong(el, "getcontentlength");
quotaAvailableBytes = RespUtils.asLong(el, "quota-available-bytes");
quotaUsedBytes = RespUtils.asLong(el, "quota-used-bytes");
crc = RespUtils.asLong(el, "crc", NS_CLYDE);
isCollection = RespUtils.hasChild(el, "collection");
Element elLockDisc = el.getChild("lockdiscovery", RespUtils.NS_DAV);
if (elLockDisc != null) {
Element elActiveLock = elLockDisc.getChild("activelock", RespUtils.NS_DAV);
if (elActiveLock != null) {
lockOwner = RespUtils.asString(elActiveLock, "owner");
Element elToken = elActiveLock.getChild("locktoken", RespUtils.NS_DAV);
if (elToken != null) {
String t = RespUtils.asString(elToken, "href");
if (t != null && t.contains(":")) {
t = t.substring(t.indexOf(":"));
}