core/src/main/java/com/digitalpebble/stormcrawler/filtering/URLFilters.java
public static URLFilters fromConf(Map stormConf) {

        String configFile = ConfUtils.getString(stormConf,
                "urlfilters.config.file");
        if (StringUtils.isNotBlank(configFile)) {
            try {
                return new URLFilters(stormConf, configFile);
            } catch (IOException e) {
                String message = "Exception caught while loading the URLFilters from "
                        + configFile;
                LOG.error(message);
                throw new RuntimeException(message, e);
            }
        }

        return URLFilters.emptyURLFilters;
    }
public static URLFilters fromConf(Map stormConf) {

        String configFile = ConfUtils.getString(stormConf,
                "urlfilters.config.file");
        if (StringUtils.isNotBlank(configFile)) {
            try {
                return new URLFilters(stormConf, configFile);
            } catch (IOException e) {
                String message = "Exception caught while loading the URLFilters from "
                        + configFile;
                LOG.error(message);
                throw new RuntimeException(message, e);
            }
        }

        return URLFilters.emptyURLFilters;
    }
public static URLFilters fromConf ( Map stormConf ) { String configFile = ConfUtils . getString ( stormConf , "urlfilters.config.file" ) ; if ( StringUtils . isNotBlank ( configFile ) ) { try { return new URLFilters ( stormConf , configFile ) ; } catch ( IOException e ) { String message = "Exception caught while loading the URLFilters from " + configFile ; LOG . error ( message ) ; throw new RuntimeException ( message , e ) ; } } return URLFilters . emptyURLFilters ; }
Loads and configure the URLFilters based on the storm config if there is
one otherwise returns an empty URLFilter.
Loads and configure the URLFilters based on the storm config if there is one otherwise returns an empty URLFilter .