Skip to content

Commit

Permalink
Async counterpart PATCH and PUT
Browse files Browse the repository at this point in the history
  • Loading branch information
gj0dcsa committed Nov 20, 2023
1 parent 107e01e commit faf5f01
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,22 @@ protected void asyncCounterpartGet(String path) {
System.currentTimeMillis())));
}

protected void asyncCounterpartPatch(String path, JsonNode jsonBody) {
_asyncCounterpartPatchPostOrPut("PATCH", path, jsonBody);
}

protected void asyncCounterpartPost(String path, JsonNode jsonBody) {
_asyncCounterpartPatchPostOrPut("POST", path, jsonBody);
}

protected void asyncCounterpartPut(String path, JsonNode jsonBody) {
_asyncCounterpartPatchPostOrPut("PUT", path, jsonBody);
}

private void _asyncCounterpartPatchPostOrPut(String method, String path, JsonNode jsonBody) {
asyncWebClient.accept(
new ConformanceRequest(
"POST",
method,
counterpartConfiguration.getUrl() + path,
Collections.emptyMap(),
new ConformanceMessage(
Expand Down

0 comments on commit faf5f01

Please sign in to comment.