List of usage examples for org.apache.http.client.methods HttpDelete HttpDelete
public HttpDelete(final String uri)
From source file:io.fabric8.maven.docker.access.util.RequestUtil.java
public static HttpUriRequest newDelete(String url) { return addDefaultHeaders(new HttpDelete(url)); }
From source file:org.talend.dataprep.api.service.command.preparation.CachePreparationEviction.java
private CachePreparationEviction(final String preparationId) { super(TRANSFORM_GROUP); execute(() -> new HttpDelete(transformationServiceUrl + "/preparation/" + preparationId + "/cache")); //$NON-NLS-1$ onError(e -> new TDPException(UNABLE_TO_DELETE_PREPARATION_CACHE, e)); on(HttpStatus.OK).then(asNull());/*from ww w. java 2 s . co m*/ }
From source file:com.restfiddle.handler.http.DeleteHandler.java
public RfResponseDTO process(RfRequestDTO rfRequestDTO) throws IOException { RfResponseDTO response = null;//from ww w . j av a2s . c o m CloseableHttpClient httpclient = HttpClients.createDefault(); HttpDelete httpDelete = new HttpDelete(rfRequestDTO.getApiUrl()); httpDelete.addHeader("Content-Type", "application/json"); try { response = processHttpRequest(httpDelete, httpclient); } finally { httpclient.close(); } return response; }
From source file:de.devbliss.apitester.factory.impl.DefaultDeleteFactory.java
public HttpDelete createDeleteRequest(URI uri) throws IOException { return new HttpDelete(uri); }
From source file:com.starbucks.apps.HttpUtils.java
public static HttpInvocationContext doDelete(String url) throws IOException { HttpUriRequest request = new HttpDelete(url); return invoke(request, null, null); }
From source file:org.dasein.cloud.aws.storage.GlacierAction.java
public HttpRequestBase getMethod(String url) throws InternalException { switch (GlacierAction.this) { case DELETE_VAULT: case DELETE_ARCHIVE: return new HttpDelete(url); case LIST_VAULTS: case DESCRIBE_VAULT: case DESCRIBE_JOB: case LIST_JOBS: case GET_JOB_OUTPUT: return new HttpGet(url); case CREATE_VAULT: return new HttpPut(url); case CREATE_ARCHIVE: case CREATE_JOB: return new HttpPost(url); }/*from ww w . ja va2 s. c om*/ throw new InternalException("failed to build method"); }
From source file:io.kahu.hawaii.util.call.http.DeleteRequest.java
public DeleteRequest(RequestDispatcher requestDispatcher, RequestContext<T> context, URI uri, ResponseHandler<HttpResponse, T> responseHandler, CallLogger<T> logger) { super(requestDispatcher, context, responseHandler, new HttpDelete(uri), logger); }
From source file:org.dasein.cloud.aws.platform.CloudFrontAction.java
public HttpRequestBase getMethod(String url) { switch (this) { case DELETE_DISTRIBUTION: return new HttpDelete(url); case LIST_DISTRIBUTIONS: case GET_DISTRIBUTION: return new HttpGet(url); case CREATE_DISTRIBUTION: return new HttpPost(url); case UPDATE_DISTRIBUTION: return new HttpPut(url); }// w w w .j a va2s . co m return null; }
From source file:com.magnet.plugin.api.requests.DeleteRequest.java
@Override protected HttpRequestBase getRequest(RequestModel requestModel) { HttpDelete httpDelete = new HttpDelete(requestModel.getTestUrl()); return httpDelete; }
From source file:com.servoy.extensions.plugins.http.DeleteRequest.java
public DeleteRequest(String url, DefaultHttpClient hc, IClientPluginAccess plugin) { super(url, hc, new HttpDelete(url), plugin); }