import io.dropwizard.db.DataSourceFactory;
import org.hibernate.validator.constraints.NotEmpty;
+import javax.validation.Valid;
import javax.validation.constraints.NotNull;
public class Wso2BpelConfiguration extends Configuration {
@NotEmpty
private String wso2SslJksPassword;
+ @Valid
+ private String serviceIp;
+
@JsonProperty
public String getTemplate() {
return template;
this.wso2SslJksPassword = wso2SslJksPassword;
}
+ @JsonProperty
+ public String getServiceIp() {
+ return serviceIp;
+ }
+
+ @JsonProperty
+ public void setServiceIp(String serviceIp) {
+ this.serviceIp = serviceIp;
+ }
}
wso2bpelEntity.setProtocol("REST");
wso2bpelEntity.setVersion("v1");
wso2bpelEntity.setUrl("/openoapi/wso2bpel/v1");
- wso2bpelEntity.setSingleNode(null, "8101", 0);
+ wso2bpelEntity.setSingleNode(Config.getConfigration().getServiceIp(), "8101", 0);
wso2bpelEntity.setVisualRange("1");
}