/** * Remove the Node associated with the given Path. * @param path The path of the Node to delete. */ public void deleteNode(final String path) { // length 0 is root: no // Path must be absolute final String nodePath = (path.length() > 0 && !path.startsWith("/")) ? ("/" + path) : path; try { final URL vospaceURL = lookupServiceURL(Standards.VOSPACE_NODES_20); final URL url = new URL(vospaceURL.toExternalForm() + nodePath); final HttpDelete httpDelete = new HttpDelete(url, false); httpDelete.run(); VOSClientUtil.checkFailure(httpDelete.getThrowable()); } catch (MalformedURLException e) { log.debug(String.format("Error creating URL from %s", nodePath)); throw new RuntimeException(e); } catch (NodeNotFoundException e) { log.debug("Node not found", e); throw new RuntimeException(e); } }
HttpDelete delete = new HttpDelete(deleteGroupURL, true); delete.setSSLSocketFactory(getSSLSocketFactory()); delete.run();
HttpDelete delete = new HttpDelete(removeUserMemberURL, true); delete.setSSLSocketFactory(getSSLSocketFactory()); delete.run();
HttpDelete delete = new HttpDelete(removeGroupMemberURL, true); delete.setSSLSocketFactory(getSSLSocketFactory()); delete.run();