aboutsummaryrefslogtreecommitdiffstats
path: root/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceToscaModelGet.java
diff options
context:
space:
mode:
Diffstat (limited to 'vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceToscaModelGet.java')
-rw-r--r--vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceToscaModelGet.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceToscaModelGet.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceToscaModelGet.java
new file mode 100644
index 000000000..e243dc321
--- /dev/null
+++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceToscaModelGet.java
@@ -0,0 +1,30 @@
+package org.onap.simulator.presetGenerator.presets.sdc;
+
+import org.springframework.http.HttpMethod;
+
+/**
+ * Created by itzikliderman on 21/12/2017.
+ */
+public class PresetSDCGetServiceToscaModelGet extends SdcPresetWithModelVersionId {
+
+ private String file;
+
+ public PresetSDCGetServiceToscaModelGet(String modelVersionId, String file) {
+ super(modelVersionId);
+ this.file = file;
+ }
+
+ public HttpMethod getReqMethod() {
+ return HttpMethod.GET;
+ }
+
+ @Override
+ public String getReqPath() {
+ return super.getReqPath()+"/toscaModel";
+ }
+
+ @Override
+ public String getFile() {
+ return file;
+ }
+}