if(existingForestConfig instanceof FilteredForestConfiguration) { FilteredForestConfiguration existingFilteredForestConfiguration = (FilteredForestConfiguration) existingForestConfig; for( Forest forest : existingFilteredForestConfiguration.listForests()) { if(forest.getPreferredHostType() == HostType.REQUEST_HOST && !forest.getHost().toLowerCase().equals(forest.getRequestHost().toLowerCase())) {
.withRenamedHost("host1", "host1a"); Forest[] filteredForests = ffg.listForests(); filteredForests = ffg.listForests(); filteredForests = ffg.listForests(); filteredForests = ffg.listForests();
.withBlackList("requestHost4"); Forest[] filteredForests = ffg.listForests();
.withWhiteList("requestHost4"); Forest[] filteredForests = ffg.listForests();