private JsonMapper jsonMapper = new JsonMapper();
private HttpHandler httpHandler = new HttpHandlerImpl();
private String baseUrl;
public WhitelistDTO getWhitelist(String code) {
WhitelistDTO result = new WhitelistDTO();
List<WhitelistDTO> whitelistDtos = this.getWhitelists(code);
for (WhitelistDTO whitelistDto : whitelistDtos) {
result.getHosts().addAll(whitelistDto.getHosts());
result.getIps().addAll(whitelistDto.getIps());
}
return result;
}