public static String getDefaultHostname(SystemConfigurationType sysconfig) { if (sysconfig == null) { return null; } else if (sysconfig.getInfrastructure() != null && sysconfig.getInfrastructure().getDefaultHostname() != null) { return sysconfig.getInfrastructure().getDefaultHostname(); } else { return sysconfig.getDefaultHostname(); // deprecated (legacy) } }
@SuppressWarnings("NullableProblems") public static void setRemoteHostAddressHeaders(SystemConfigurationType config) { List<String> newValue = config != null && config.getInfrastructure() != null ? new ArrayList<>(config.getInfrastructure().getRemoteHostAddressHeader()) : Collections.emptyList(); if (!MiscUtil.unorderedCollectionEquals(remoteHostAddressHeaders, newValue)) { LOGGER.debug("Setting new value for 'remoteHostAddressHeaders': {}", newValue); } remoteHostAddressHeaders = newValue; }
.getObject(SystemConfigurationType.class, SystemObjectsType.SYSTEM_CONFIGURATION.value(), null, task, result).asObjectable(); String icUrlPattern = systemConfig.getInfrastructure() != null ? systemConfig.getInfrastructure().getIntraClusterHttpUrlPattern() : null; String[] splitted = filePath.split("/"); String filename = splitted[splitted.length - 1];
baseUrl = nodeType.getUrl(); } else { String httpUrlPattern = systemConfig != null && systemConfig.getInfrastructure() != null ? systemConfig.getInfrastructure().getIntraClusterHttpUrlPattern() : null; if (StringUtils.isBlank(httpUrlPattern)) {
.getObject(SystemConfigurationType.class, SystemObjectsType.SYSTEM_CONFIGURATION.value(), null, task, result).asObjectable(); String icUrlPattern = systemConfig.getInfrastructure().getIntraClusterHttpUrlPattern(); String[] splitted = filePath.split("/"); String filename = splitted[splitted.length - 1];