core/src/main/java/com/digitalpebble/stormcrawler/filtering/regex/RegexURLFilterBase.java
private List<RegexRule> readRules(ArrayNode rulesList) {
        List<RegexRule> rules = new ArrayList<>();
        for (JsonNode urlFilterNode : rulesList) {
            try {
                RegexRule rule = createRule(urlFilterNode.asText());
                if (rule != null) {
                    rules.add(rule);
                }
            } catch (IOException e) {
                LOG.error("There was an error reading regex filter {}",
                        urlFilterNode.asText(), e);
            }
        }
        return rules;
    }
private List<RegexRule> readRules(ArrayNode rulesList) {
        List<RegexRule> rules = new ArrayList<>();
        for (JsonNode urlFilterNode : rulesList) {
            try {
                RegexRule rule = createRule(urlFilterNode.asText());
                if (rule != null) {
                    rules.add(rule);
                }
            } catch (IOException e) {
                LOG.error("There was an error reading regex filter {}",
                        urlFilterNode.asText(), e);
            }
        }
        return rules;
    }
private List < RegexRule > readRules ( ArrayNode rulesList ) { List < RegexRule > rules = new ArrayList <> ( ) ; for ( JsonNode urlFilterNode : rulesList ) { try { RegexRule rule = createRule ( urlFilterNode . asText ( ) ) ; if ( rule != null ) { rules . add ( rule ) ; } } catch ( IOException e ) { LOG . error ( "There was an error reading regex filter {}" , urlFilterNode . asText ( ) , e ) ; } } return rules ; }
Populates a List of Rules off of JsonNode.
Populates a List of Rules off of JsonNode .