summaryrefslogtreecommitdiffstats
path: root/profiles/http/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/http/src/main/java/org')
-rw-r--r--profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java b/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java
index aee37236..b21c2575 100644
--- a/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java
+++ b/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java
@@ -41,6 +41,7 @@ import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpDelete;
import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
import org.apache.http.client.methods.HttpGet;
+import org.apache.http.client.methods.HttpPatch;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.methods.HttpPut;
import org.apache.http.client.methods.HttpRequestBase;
@@ -301,6 +302,10 @@ public class OnapHttpConnection {
HttpPut httpPut = new HttpPut();
httpPut.setEntity(this.getStringEntity(input));
requestBase = httpPut;
+ } else if ("patch".equals(input.getMethod())) {
+ HttpPatch httpPatch = new HttpPatch();
+ httpPatch.setEntity(this.getStringEntity(input));
+ requestBase = httpPatch;
} else if ("get".equals(input.getMethod())) {
requestBase = new HttpGet();
} else if ("delete".equals(input.getMethod())) {