2 * Copyright 2016 ZTE Corporation.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 package org.openo.carbon.bpel;
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;
23 import javax.validation.Valid;
24 import javax.validation.constraints.NotNull;
26 public class Wso2BpelConfiguration extends Configuration {
28 private String template;
30 private String apiDescription = "Wso2bps REST API";
32 private DataSourceFactory database = new DataSourceFactory();
35 private String msbServerAddr;
38 private String wso2Host;
41 private String wso2HostPort;
44 private String wso2AuthUserName;
47 private String wso2AuthPassword;
50 private String wso2Path;
53 private String wso2UploadFilePath;
56 private String wso2SslJksFile;
59 private String wso2SslJksPassword;
62 private String serviceIp;
65 public String getTemplate() {
70 public String getApiDescription() {
71 return apiDescription;
74 @JsonProperty("database")
75 public DataSourceFactory getDataSourceFactory() {
80 public DataSourceFactory getDatabase() {
85 public void setDatabase(DataSourceFactory database) {
86 this.database = database;
90 public String getMsbServerAddr() {
95 public void setMsbServerAddr(String msbServerAddr) {
96 this.msbServerAddr = msbServerAddr;
100 public String getWso2Host() {
105 public void setWso2Host(String wso2Host) {
106 this.wso2Host = wso2Host;
110 public String getWso2HostPort() {
115 public void setWso2HostPort(String wso2HostPort) {
116 this.wso2HostPort = wso2HostPort;
120 public String getWso2AuthUserName() {
121 return wso2AuthUserName;
125 public void setWso2AuthUserName(String wso2AuthUserName) {
126 this.wso2AuthUserName = wso2AuthUserName;
130 public String getWso2AuthPassword() {
131 return wso2AuthPassword;
135 public void setWso2AuthPassword(String wso2AuthPassword) {
136 this.wso2AuthPassword = wso2AuthPassword;
140 public String getWso2Path() {
145 public void setWso2Path(String wso2Path) {
146 this.wso2Path = wso2Path;
150 public String getWso2UploadFilePath() {
151 return wso2UploadFilePath;
155 public void setWso2UploadFilePath(String wso2UploadFilePath) {
156 this.wso2UploadFilePath = wso2UploadFilePath;
160 public String getWso2SslJksFile() {
161 return wso2SslJksFile;
165 public void setWso2SslJksFile(String wso2SslJksFile) {
166 this.wso2SslJksFile = wso2SslJksFile;
170 public String getWso2SslJksPassword() {
171 return wso2SslJksPassword;
175 public void setWso2SslJksPassword(String wso2SslJksPassword) {
176 this.wso2SslJksPassword = wso2SslJksPassword;
180 public String getServiceIp() {
185 public void setServiceIp(String serviceIp) {
186 this.serviceIp = serviceIp;