private Integer getRequiredIntegerProperty(Properties properties, String key) { String value = getRequiredProperty(properties, key); try { return Integer.valueOf(value); } catch (NumberFormatException e) { throw new IllegalArgumentException( "Restlet Cloud configuration file error. The property '" + key + "' should be a number", e); } }
private Integer getRequiredIntegerProperty(Properties properties, String key) { String value = getRequiredProperty(properties, key); try { return Integer.valueOf(value); } catch (NumberFormatException e) { throw new IllegalArgumentException( "Restlet Cloud configuration file error. The property '" + key + "' should be a number", e); } }
private Integer getRequiredIntegerProperty(Properties properties, String key) { String value = getRequiredProperty(properties, key); try { return Integer.valueOf(value); } catch (NumberFormatException e) { throw new IllegalArgumentException( "Restlet Cloud configuration file error. The property '" + key + "' should be a number", e); } }
private Integer getRequiredIntegerProperty(Properties properties, String key) { String value = getRequiredProperty(properties, key); try { return Integer.valueOf(value); } catch (NumberFormatException e) { throw new IllegalArgumentException( "Restlet Cloud configuration file error. The property '" + key + "' should be a number", e); } }
DEFAULT_AGENT_SERVICE_URL); this.agentLogin = properties.getProperty("agent.login"); this.agentPassword = getRequiredProperty(properties, "agent.password") .toCharArray(); this.agentCellId = getRequiredIntegerProperty(properties, this.agentCellVersion = getRequiredIntegerProperty(properties, "agent.cellVersion"); this.reverseProxyEnabled = Boolean.valueOf(getRequiredProperty( properties, "reverseProxy.enabled")); if (this.reverseProxyEnabled) { this.reverseProxyTargetUrl = getRequiredProperty(properties, "reverseProxy.targetUrl");
DEFAULT_AGENT_SERVICE_URL); this.agentLogin = properties.getProperty("agent.login"); this.agentPassword = getRequiredProperty(properties, "agent.password") .toCharArray(); this.agentCellId = getRequiredIntegerProperty(properties, this.agentCellVersion = getRequiredIntegerProperty(properties, "agent.cellVersion"); this.reverseProxyEnabled = Boolean.valueOf(getRequiredProperty( properties, "reverseProxy.enabled")); if (this.reverseProxyEnabled) { this.reverseProxyTargetUrl = getRequiredProperty(properties, "reverseProxy.targetUrl");
DEFAULT_AGENT_SERVICE_URL); this.agentLogin = properties.getProperty("agent.login"); this.agentPassword = getRequiredProperty(properties, "agent.password") .toCharArray(); this.agentCellId = getRequiredIntegerProperty(properties, this.agentCellVersion = getRequiredIntegerProperty(properties, "agent.cellVersion"); this.reverseProxyEnabled = Boolean.valueOf(getRequiredProperty( properties, "reverseProxy.enabled")); if (this.reverseProxyEnabled) { this.reverseProxyTargetUrl = getRequiredProperty(properties, "reverseProxy.targetUrl");
DEFAULT_AGENT_SERVICE_URL); this.agentLogin = properties.getProperty("agent.login"); this.agentPassword = getRequiredProperty(properties, "agent.password") .toCharArray(); this.agentCellId = getRequiredIntegerProperty(properties, this.agentCellVersion = getRequiredIntegerProperty(properties, "agent.cellVersion"); this.reverseProxyEnabled = Boolean.valueOf(getRequiredProperty( properties, "reverseProxy.enabled")); if (this.reverseProxyEnabled) { this.reverseProxyTargetUrl = getRequiredProperty(properties, "reverseProxy.targetUrl");