You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
2.6 KiB
72 lines
2.6 KiB
package com.fr.plugin; |
|
|
|
import com.fr.config.*; |
|
import com.fr.config.holder.Conf; |
|
import com.fr.config.holder.factory.Holders; |
|
|
|
@Visualization(category = "xx短信接口配置") |
|
public class GYSMSConfig extends DefaultConfiguration { |
|
|
|
private static volatile GYSMSConfig config = null; |
|
|
|
public static GYSMSConfig getInstance() { |
|
if (config == null) { |
|
config = ConfigContext.getConfigInstance(GYSMSConfig.class); |
|
} |
|
return config; |
|
} |
|
@Identifier(value = "apiUrl", name = "短信接接口地址", description = "描述", status = Status.SHOW) |
|
private Conf<String> apiUrl = Holders.simple("http://xxx.xxx.xxx.xxx:xxxxx/smservice?wsdl"); |
|
@Identifier(value = "username", name = "短信用户名", description = "描述", status = Status.SHOW) |
|
private Conf<String> username = Holders.simple(""); |
|
@Identifier(value = "password", name = "短信密码", description = "描述", status = Status.SHOW) |
|
private Conf<String> password = Holders.simple(""); |
|
@Identifier(value = "smformat", name = "smformat", description = "描述", status = Status.SHOW) |
|
private Conf<String> smformat = Holders.simple("MSG"); |
|
@Identifier(value = "frUrl", name = "帆软本地路径", description = "描述", status = Status.SHOW) |
|
private Conf<String> frUrl = Holders.simple("http://xxx/webroot/decision"); |
|
public String getApiUrl() { |
|
return apiUrl.get(); |
|
} |
|
public void setApiUrl(String apiUrl) { |
|
this.apiUrl.set(apiUrl); |
|
} |
|
public String getUsername() { |
|
return username.get(); |
|
} |
|
public void setUsername(String username) { |
|
this.username.set(username); |
|
} |
|
public String getPassword() { |
|
return password.get(); |
|
} |
|
public void setPassword(String password) { |
|
this.password.set(password); |
|
} |
|
public String getSmformat() { |
|
return smformat.get(); |
|
} |
|
public void setSmformat(String smformat) { |
|
this.smformat.set(smformat); |
|
} |
|
|
|
public String getFrUrl() { |
|
return frUrl.get(); |
|
} |
|
|
|
public void setFrUrl( String frUrl) { |
|
this.frUrl .set(frUrl); |
|
} |
|
|
|
@Override |
|
public Object clone() throws CloneNotSupportedException { |
|
GYSMSConfig cloned = (GYSMSConfig) super.clone(); |
|
cloned.apiUrl = (Conf<String>) this.apiUrl.clone(); |
|
cloned.username = (Conf<String>) this.username.clone(); |
|
cloned.password = (Conf<String>) this.password.clone(); |
|
cloned.smformat = (Conf<String>) this.smformat.clone(); |
|
cloned.frUrl = (Conf<String>) this.frUrl.clone(); |
|
return cloned; |
|
} |
|
|
|
} |