fb425aae8ce307dc6dec9522e2b2ebb99e8a5b58
[sdc/sdc-workflow-designer.git] /
1 /**
2  * Copyright (c) 2017-2018 ZTE Corporation.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the Apache License, Version 2.0
5  * and the Eclipse Public License v1.0 which both accompany this distribution,
6  * and are available at http://www.eclipse.org/legal/epl-v10.html
7  * and http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Contributors:
10  *     ZTE - initial API and implementation and/or initial documentation
11  */
12 package org.onap.sdc.workflowdesigner.model;
13
14 import java.util.List;
15
16 import org.onap.sdc.workflowdesigner.config.Config;
17
18 public class RestServiceTask extends ServiceTask {
19     private static String handler = Config.PROPERTIES.getProperty(Config.HANDLER_ClASS);
20         
21 //      private String restConfigId;
22 //      public String getRestConfigId() {
23 //              return restConfigId;
24 //      }
25 //      public void setRestConfigId(String restConfigId) {
26 //              this.restConfigId = restConfigId;
27 //      }
28         private List<String> produces;
29         private List<String> consumes;
30         
31         
32         private List<Parameter> parameters;
33         private String baseUrl;
34         private String serviceName;
35         private String serviceVersion;
36         private String path;
37         private String method;
38         
39         public String getBaseUrl() {
40                 return baseUrl;
41         }
42         public void setBaseUrl(String url) {
43                 this.baseUrl = url;
44         }
45         
46         public String getMethod() {
47                 return method;
48         }
49         
50         public static String getHandler() {
51                 return handler;
52         }
53         public static void setHandler(String handler) {
54                 RestServiceTask.handler = handler;
55         }
56         public void setMethod(String method) {
57                 this.method = method;
58         }
59         public List<String> getProduces() {
60                 return produces;
61         }
62         public void setProduces(List<String> produces) {
63                 this.produces = produces;
64         }
65         public List<String> getConsumes() {
66                 return consumes;
67         }
68         public void setConsumes(List<String> consumes) {
69                 this.consumes = consumes;
70         }
71         public List<Parameter> getParameters() {
72                 return parameters;
73         }
74         public void setParameters(List<Parameter> parameters) {
75                 this.parameters = parameters;
76         }
77         public String getServiceName() {
78                 return serviceName;
79         }
80         public void setServiceName(String serviceName) {
81                 this.serviceName = serviceName;
82         }
83         public String getServiceVersion() {
84                 return serviceVersion;
85         }
86         public void setServiceVersion(String serviceVersion) {
87                 this.serviceVersion = serviceVersion;
88         }
89         public String getPath() {
90                 return path;
91         }
92         public void setPath(String path) {
93                 this.path = path;
94         }
95 }