agave-systems/systems-core/src/main/java/org/iplantc/service/transfer/http/HTTP.java
/**
	 * Makes HTTP delete on path with supplied headers.
	 * @param path
	 * @return raw http response object with entity in tact
	 * @throws IOException
	 * @throws RemoteDataException
	 */
Makes HTTP delete on path with supplied headers.
@param path
@return raw http response object with entity in tact
@throws IOException
@throws RemoteDataException
Makes HTTP delete on path with supplied headers . @param path @return raw http response object with entity in tact @throws IOException @throws RemoteDataException
public CloseableHttpResponse doDelete(String path, Map<String, String> mappedHeaders)
	throws IOException, RemoteDataException
	{
		try 
		{
			URI escapedUri = getUriForPath(path);
			HttpDelete httpDelete = new HttpDelete(escapedUri);
		    if (mappedHeaders != null && !mappedHeaders.isEmpty()) 
		    {
		    	for (String key: mappedHeaders.keySet()) {
		    		httpDelete.addHeader(key, mappedHeaders.get(key));
		    	}
		    }
			return doRequest(escapedUri, httpDelete);
		}
		catch (IOException e) {
			throw e;
		}
		catch (Exception e) {
			throw new RemoteDataException("Failed to establish output stream to " + path, e);
		}
	}
public CloseableHttpResponse doDelete ( String path , Map < String , String > mappedHeaders ) throws IOException , RemoteDataException { try { URI escapedUri = getUriForPath ( path ) ; HttpDelete httpDelete = new HttpDelete ( escapedUri ) ; if ( mappedHeaders != null && ! mappedHeaders . isEmpty ( ) ) { for ( String key : mappedHeaders . keySet ( ) ) { httpDelete . addHeader ( key , mappedHeaders . get ( key ) ) ; } } return doRequest ( escapedUri , httpDelete ) ; } catch ( IOException e ) { throw e ; } catch ( Exception e ) { throw new RemoteDataException ( "Failed to establish output stream to " + path , e ) ; } }
Makes HTTP delete on path with supplied headers.
Makes HTTP delete on path with supplied headers .