aboutsummaryrefslogtreecommitdiffstats
path: root/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/model/SimulatorRequest.java
diff options
context:
space:
mode:
authorOfir Sonsino <os0695@att.com>2018-01-31 17:19:00 +0200
committerOfir Sonsino <os0695@att.com>2018-01-31 17:19:00 +0200
commit1cfb08779ea0e00be69e072a940b3063e049fe6b (patch)
tree6602a900387c8393ed0dcd81c0539381632903c6 /vid-ext-services-simulator/src/main/java/org/openecomp/simulator/model/SimulatorRequest.java
parent2f20b001b9243e0f8b44aecc768ec265fd538732 (diff)
org.onap migration
Change-Id: I52f0b2851f2c765752b6d21f49b32136d7d72a3d Issue-ID: VID-86 Signed-off-by: Ofir Sonsino <os0695@att.com>
Diffstat (limited to 'vid-ext-services-simulator/src/main/java/org/openecomp/simulator/model/SimulatorRequest.java')
-rw-r--r--vid-ext-services-simulator/src/main/java/org/openecomp/simulator/model/SimulatorRequest.java67
1 files changed, 67 insertions, 0 deletions
diff --git a/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/model/SimulatorRequest.java b/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/model/SimulatorRequest.java
new file mode 100644
index 000000000..6c619b399
--- /dev/null
+++ b/vid-ext-services-simulator/src/main/java/org/openecomp/simulator/model/SimulatorRequest.java
@@ -0,0 +1,67 @@
+package org.openecomp.simulator.model;
+
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.databind.JsonNode;
+
+import java.util.List;
+import java.util.Map;
+
+@JsonInclude(JsonInclude.Include.NON_NULL)
+public class SimulatorRequest {
+ private String id;
+ private String method;
+ private String path;
+ private String body;
+ private Map<String, List<String>> queryParams;
+
+ public Map<String, List<String>> getQueryParams() {
+ return queryParams;
+ }
+
+ public void setQueryParams(Map<String, List<String>> queryParams) {
+ this.queryParams = queryParams;
+ }
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public String getMethod() {
+ return method;
+ }
+
+ public void setMethod(String method) {
+ this.method = method;
+ }
+
+ public String getPath() {
+ return path;
+ }
+
+ public void setPath(String path) {
+ this.path = path;
+ }
+
+ public String getBody() {
+ return body;
+ }
+
+ public void setBody(JsonNode body) {
+ this.body = body.isTextual() ? body.textValue() : body.toString();
+ }
+
+ @Override
+ public String toString() {
+ return "SimulatorRequest{" +
+ "id='" + id + '\'' +
+ ", method='" + method + '\'' +
+ ", path='" + path + '\'' +
+ ", body='" + body + '\'' +
+ ", queryParams=" + queryParams +
+ '}';
+ }
+}