diff options
author | 2018-08-21 13:29:02 +0200 | |
---|---|---|
committer | 2018-08-21 14:35:17 +0200 | |
commit | 9c2c7e8ce83b8dfda0b4c1fbd875c9c34caf51eb (patch) | |
tree | 831dd1796dd8b05ed7c2681d5fd3c19e40ec3fe4 /vid-ext-services-simulator/src/main/java/org/onap/simulator/model/SimulatorRequest.java | |
parent | 6447784fdd770e8a2b4ef2c52ba206d35c0fd325 (diff) |
Rename vid-simulator packages
- Rename from openecomp to onap and update imports
- Fix small bug in README.txt
Change-Id: I099b010adf7ed6dd708c9feae0340be462b1d195
Issue-ID: VID-205
Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
Diffstat (limited to 'vid-ext-services-simulator/src/main/java/org/onap/simulator/model/SimulatorRequest.java')
-rw-r--r-- | vid-ext-services-simulator/src/main/java/org/onap/simulator/model/SimulatorRequest.java | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/vid-ext-services-simulator/src/main/java/org/onap/simulator/model/SimulatorRequest.java b/vid-ext-services-simulator/src/main/java/org/onap/simulator/model/SimulatorRequest.java new file mode 100644 index 000000000..9e298b916 --- /dev/null +++ b/vid-ext-services-simulator/src/main/java/org/onap/simulator/model/SimulatorRequest.java @@ -0,0 +1,67 @@ +package org.onap.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 + + '}'; + } +} |