super(properties);
}
public void init() throws Exception {
ServerConfig serverConfig = ServerConfigFactory.getSingleton();
String httpPort = this.properties.getProperty(PROPERTIES_KEY_HTTPPORT, DEFAULT_HTTPPORT);
String httpsPort = this.properties.getProperty(PROPERTIES_KEY_HTTPSPORT, DEFAULT_HTTPSPORT);
String http = this.properties.getProperty(PROPERTIES_KEY_HTTP, DEFAULT_HTTP);
if (Boolean.parseBoolean(http)) {
StringBuffer buffer = new StringBuffer()
.append("http://")
.append(serverConfig.getHostName())
.append(":")
.append(httpPort)
.append(serverConfig.getServletPath());
this.httpURI = buffer.toString();
}
String https = this.properties.getProperty(PROPERTIES_KEY_HTTPS, DEFAULT_HTTPS);
if (Boolean.parseBoolean(https)) {
StringBuffer buffer = new StringBuffer()
.append("https://")
.append(serverConfig.getHostName())
.append(":")
.append(httpsPort)
.append(serverConfig.getServletPath());
this.httpsURI = buffer.toString();
}
String trust = this.properties.getProperty(PROPERTIES_KEY_TRUST, DEFAULT_TRUST);