private void buildFolderUrl() { String encodedName; String[] urlParts = this.mName.split("/"); String url = ""; for (int i = 0, count = urlParts.length; i < count; i++) { if (i != 0) { url = url + "/" + encodeUtf8(urlParts[i]); } else { url = encodeUtf8(urlParts[i]); } } encodedName = url; encodedName = encodedName.replaceAll("\\+", "%20"); this.mFolderUrl = store.getUrl(); if (!store.getUrl().endsWith("/")) { this.mFolderUrl += "/"; } this.mFolderUrl += encodedName; }
private String generateDeleteUrl(String startUrl) { String[] urlParts = startUrl.split("/"); String filename = urlParts[urlParts.length - 1]; return store.getUrl() + "Deleted%20Items/" + filename; }