Add serviceIp property which is used to config wso2-ext microservice ipaddress
[vfc/nfvo/wfengine.git] / wso2bpel-ext / wso2bpel-core / wso2bpel-mgr / src / main / java / org / openo / carbon / bpel / Wso2BpelConfiguration.java
1 /**
2  * Copyright 2016 ZTE Corporation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package org.openo.carbon.bpel;
17
18 import io.dropwizard.Configuration;
19 import com.fasterxml.jackson.annotation.JsonProperty;
20 import io.dropwizard.db.DataSourceFactory;
21 import org.hibernate.validator.constraints.NotEmpty;
22
23 import javax.validation.Valid;
24 import javax.validation.constraints.NotNull;
25
26 public class Wso2BpelConfiguration extends Configuration {
27   @NotEmpty
28   private String template;
29   @NotEmpty
30   private String apiDescription = "Wso2bps REST API";
31   @NotNull
32   private DataSourceFactory database = new DataSourceFactory();
33   
34   @NotEmpty
35   private String msbServerAddr;
36   
37   @NotEmpty
38   private String wso2Host;
39
40   @NotEmpty
41   private String wso2HostPort;
42   
43   @NotEmpty
44   private String wso2AuthUserName;
45   
46   @NotEmpty
47   private String wso2AuthPassword;
48   
49   @NotEmpty
50   private String wso2Path;
51   
52   @NotEmpty
53   private String wso2UploadFilePath;
54   
55   @NotEmpty
56   private String wso2SslJksFile;
57   
58   @NotEmpty
59   private String wso2SslJksPassword;
60   
61   @Valid
62   private String serviceIp;
63   
64   @JsonProperty
65   public String getTemplate() {
66     return template;
67   }
68
69   @JsonProperty
70   public String getApiDescription() {
71     return apiDescription;
72   }
73
74   @JsonProperty("database")
75   public DataSourceFactory getDataSourceFactory() {
76     return database;
77   }
78
79   @JsonProperty
80   public DataSourceFactory getDatabase() {
81     return database;
82   }
83
84   @JsonProperty
85   public void setDatabase(DataSourceFactory database) {
86     this.database = database;
87   }
88
89   @JsonProperty
90   public String getMsbServerAddr() {
91     return msbServerAddr;
92   }
93
94   @JsonProperty
95   public void setMsbServerAddr(String msbServerAddr) {
96     this.msbServerAddr = msbServerAddr;
97   }
98   
99   @JsonProperty
100   public String getWso2Host() {
101     return wso2Host;
102   }
103
104   @JsonProperty
105   public void setWso2Host(String wso2Host) {
106     this.wso2Host = wso2Host;
107   }
108   
109   @JsonProperty
110   public String getWso2HostPort() {
111     return wso2HostPort;
112   }
113
114   @JsonProperty
115   public void setWso2HostPort(String wso2HostPort) {
116     this.wso2HostPort = wso2HostPort;
117   }
118
119   @JsonProperty
120   public String getWso2AuthUserName() {
121     return wso2AuthUserName;
122   }
123
124   @JsonProperty
125   public void setWso2AuthUserName(String wso2AuthUserName) {
126     this.wso2AuthUserName = wso2AuthUserName;
127   }
128
129   @JsonProperty
130   public String getWso2AuthPassword() {
131     return wso2AuthPassword;
132   }
133
134   @JsonProperty
135   public void setWso2AuthPassword(String wso2AuthPassword) {
136     this.wso2AuthPassword = wso2AuthPassword;
137   }
138
139   @JsonProperty
140   public String getWso2Path() {
141     return wso2Path;
142   }
143
144   @JsonProperty
145   public void setWso2Path(String wso2Path) {
146     this.wso2Path = wso2Path;
147   }
148
149   @JsonProperty
150   public String getWso2UploadFilePath() {
151     return wso2UploadFilePath;
152   }
153
154   @JsonProperty
155   public void setWso2UploadFilePath(String wso2UploadFilePath) {
156     this.wso2UploadFilePath = wso2UploadFilePath;
157   }
158
159   @JsonProperty
160   public String getWso2SslJksFile() {
161     return wso2SslJksFile;
162   }
163
164   @JsonProperty
165   public void setWso2SslJksFile(String wso2SslJksFile) {
166     this.wso2SslJksFile = wso2SslJksFile;
167   }
168
169   @JsonProperty
170   public String getWso2SslJksPassword() {
171     return wso2SslJksPassword;
172   }
173
174   @JsonProperty
175   public void setWso2SslJksPassword(String wso2SslJksPassword) {
176     this.wso2SslJksPassword = wso2SslJksPassword;
177   }
178
179   @JsonProperty
180   public String getServiceIp() {
181     return serviceIp;
182   }
183
184   @JsonProperty
185   public void setServiceIp(String serviceIp) {
186     this.serviceIp = serviceIp;
187   }
188 }