diff options
author | Wojciech Sliwka <wojciech.sliwka@nokia.com> | 2018-10-29 13:45:31 +0100 |
---|---|---|
committer | Wojciech Sliwka <wojciech.sliwka@nokia.com> | 2018-10-29 13:45:31 +0100 |
commit | e4c1493b35c4a3f3ee2232eccdf8e254ede74a85 (patch) | |
tree | 147e8ba6a14e4e6ba8174c340f59e0b91d9fd154 /vid-app-common/src/main/java/org/onap/vid/client/SyncRestClient.java | |
parent | 422fd82d89d6a7e004f545cb8dd3a5d94f7acb29 (diff) |
Add request to delete body
Issue-ID: VID-336
Change-Id: I1d619628f6251c6a62fcd1770f2e8539355c413f
Signed-off-by: Wojciech Sliwka <wojciech.sliwka@nokia.com>
Diffstat (limited to 'vid-app-common/src/main/java/org/onap/vid/client/SyncRestClient.java')
-rw-r--r-- | vid-app-common/src/main/java/org/onap/vid/client/SyncRestClient.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/client/SyncRestClient.java b/vid-app-common/src/main/java/org/onap/vid/client/SyncRestClient.java index b7f22640..a3ff5f92 100644 --- a/vid-app-common/src/main/java/org/onap/vid/client/SyncRestClient.java +++ b/vid-app-common/src/main/java/org/onap/vid/client/SyncRestClient.java @@ -135,6 +135,11 @@ public class SyncRestClient implements SyncRestClientInterface { } @Override + public <T> HttpResponse<T> delete(String url, Map<String, String> headers, Object body, Class<T> responseClass) { + return callWithRetryOverHttp(url, url2 -> restClient.delete(url2).headers(headers).body(body).asObject(responseClass)); + } + + @Override public <T> HttpResponse<T> delete(String url, Map<String, String> headers, Class<T> responseClass) { return callWithRetryOverHttp(url, url2 -> restClient.delete(url2).headers(headers).asObject(responseClass)); } |