/** * Looks into system variable and environment variables if url is in ${...} format. * @return Connection URL */ @Override public String getConnectionURL() { String connectionUrl = super.getConnectionURL(); if (ForceConnectorUtils.isInjectable(connectionUrl)) { connectionUrl = ForceConnectorUtils.extractValue(connectionUrl); if (connectionUrl == null || connectionUrl.equals("")) { throw new IllegalArgumentException("Unable to load ForceConnectorConfig from environment or system property " + super.getConnectionURL()); } } return connectionUrl; }
/** * Looks into system variable and environment variables if url is in ${...} format. * @return Connection URL */ @Override public String getConnectionURL() { String connectionUrl = super.getConnectionURL(); if (ForceConnectorUtils.isInjectable(connectionUrl)) { connectionUrl = ForceConnectorUtils.extractValue(connectionUrl); if (connectionUrl == null || connectionUrl.equals("")) { throw new IllegalArgumentException("Unable to load ForceConnectorConfig from environment or system property " + super.getConnectionURL()); } } return connectionUrl; }
connectionUrl = ForceConnectorUtils.extractValue(connectionUrl); if (connectionUrl == null || connectionUrl.equals("")) { throw new IllegalArgumentException("Unable to load ForceConnectorConfig from environment or system property " if(config.getInitParameter("secure-key-config-var") != null) { LOGGER.info("Setting encryption key based on config var: " + config.getInitParameter("secure-key-config-var")); String key = ForceConnectorUtils.extractValue(config.getInitParameter("secure-key-config-var")); cookieStore.setKey(key); } else {
connectionUrl = ForceConnectorUtils.extractValue(connectionUrl); if (connectionUrl == null || connectionUrl.equals("")) { throw new IllegalArgumentException("Unable to load ForceConnectorConfig from environment or system property " if(config.getInitParameter("secure-key-config-var") != null) { LOGGER.info("Setting encryption key based on config var: " + config.getInitParameter("secure-key-config-var")); String key = ForceConnectorUtils.extractValue(config.getInitParameter("secure-key-config-var")); cookieStore.setKey(key); } else {