@Override public void deleteSession(TestResults testResults) { ArgumentGuard.notNull(testResults, "testResults"); Invocation.Builder invocationBuilder = restClient.target(serverUrl) .path("/api/sessions/batches/") .path(testResults.getBatchId()) .path("/") .path(testResults.getId()) .queryParam("apiKey", getApiKey()) .queryParam("AccessToken", testResults.getSecretToken()) .request(MediaType.APPLICATION_JSON); Response response = invocationBuilder.delete(); }
@Override public void deleteSession(TestResults testResults) { ArgumentGuard.notNull(testResults, "testResults"); Invocation.Builder invocationBuilder = restClient.target(serverUrl) .path("/api/sessions/batches/") .path(testResults.getBatchId()) .path("/") .path(testResults.getId()) .queryParam("apiKey", getApiKey()) .queryParam("AccessToken", testResults.getSecretToken()) .request(MediaType.APPLICATION_JSON); Response response = invocationBuilder.delete(); }
@Override public void deleteSession(TestResults testResults) { ArgumentGuard.notNull(testResults, "testResults"); Invocation.Builder invocationBuilder = restClient.target(serverUrl) .path("/api/sessions/batches/") .path(testResults.getBatchId()) .path("/") .path(testResults.getId()) .queryParam("apiKey", getApiKey()) .queryParam("AccessToken", testResults.getSecretToken()) .request(MediaType.APPLICATION_JSON); @SuppressWarnings("unused") Response response = invocationBuilder.delete(); }
@Override public void deleteSession(TestResults testResults) { ArgumentGuard.notNull(testResults, "testResults"); WebResource sessionsResources = restClient.resource(serverUrl); WebResource.Builder builder = sessionsResources .path("/api/sessions/batches/") .path(testResults.getBatchId()) .path("/") .path(testResults.getId()) .queryParam("apiKey", getApiKey()) .queryParam("AccessToken", testResults.getSecretToken()) .accept(MediaType.APPLICATION_JSON); builder.delete(); }