aboutsummaryrefslogtreecommitdiffstats
path: root/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/sdc/PresetSDCGetServiceToscaModelGet.java
blob: e243dc321523d941d198d7926e0938177f9cd3be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;
    }
}