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.constraints.NotNull;
25 public class Wso2BpelConfiguration extends Configuration {
27 private String template;
29 private String apiDescription = "Wso2bps REST API";
31 private DataSourceFactory database = new DataSourceFactory();
34 private String msbServerAddr;
37 private String wso2Host;
40 private String wso2HostPort;
43 private String wso2AuthUserName;
46 private String wso2AuthPassword;
49 private String wso2Path;
52 private String wso2UploadFilePath;
55 private String wso2SslJksFile;
58 private String wso2SslJksPassword;
61 public String getTemplate() {
66 public String getApiDescription() {
67 return apiDescription;
70 @JsonProperty("database")
71 public DataSourceFactory getDataSourceFactory() {
76 public DataSourceFactory getDatabase() {
81 public void setDatabase(DataSourceFactory database) {
82 this.database = database;
86 public String getMsbServerAddr() {
91 public void setMsbServerAddr(String msbServerAddr) {
92 this.msbServerAddr = msbServerAddr;
96 public String getWso2Host() {
101 public void setWso2Host(String wso2Host) {
102 this.wso2Host = wso2Host;
106 public String getWso2HostPort() {
111 public void setWso2HostPort(String wso2HostPort) {
112 this.wso2HostPort = wso2HostPort;
116 public String getWso2AuthUserName() {
117 return wso2AuthUserName;
121 public void setWso2AuthUserName(String wso2AuthUserName) {
122 this.wso2AuthUserName = wso2AuthUserName;
126 public String getWso2AuthPassword() {
127 return wso2AuthPassword;
131 public void setWso2AuthPassword(String wso2AuthPassword) {
132 this.wso2AuthPassword = wso2AuthPassword;
136 public String getWso2Path() {
141 public void setWso2Path(String wso2Path) {
142 this.wso2Path = wso2Path;
146 public String getWso2UploadFilePath() {
147 return wso2UploadFilePath;
151 public void setWso2UploadFilePath(String wso2UploadFilePath) {
152 this.wso2UploadFilePath = wso2UploadFilePath;
156 public String getWso2SslJksFile() {
157 return wso2SslJksFile;
161 public void setWso2SslJksFile(String wso2SslJksFile) {
162 this.wso2SslJksFile = wso2SslJksFile;
166 public String getWso2SslJksPassword() {
167 return wso2SslJksPassword;
171 public void setWso2SslJksPassword(String wso2SslJksPassword) {
172 this.wso2SslJksPassword = wso2SslJksPassword;