Package ru.decipher.proxy.source

Examples of ru.decipher.proxy.source.ProxySourceSite


    public Collection<HttpProxyConfig> load() throws Exception {
        Processor<HttpRequest> processor = new GeneralProcessor<>(workers);
        List<ProxySourceSite> sites = new ArrayList<>();
        for (Class<? extends ProxySourceSite> clazz : loaderClasses) {
            final Constructor<? extends ProxySourceSite> constructor = clazz.getConstructor(Processor.class);
            final ProxySourceSite site = constructor.newInstance(processor);
            sites.add(site);
            site.init();
        }
        processor.shutdown();
        Set<HttpProxyConfig> result = new HashSet<>();
        for (ProxySourceSite site : sites) {
            result.addAll(site.load());
        }
        return result;
    }
View Full Code Here


        page = 0;
    }

    public static void main(String[] args) throws Exception {
        GeneralProcessor<BasicHttpRequest> processor = new GeneralProcessor<>(1);
        ProxySourceSite site = new GoogleCom(processor);
        site.init();
        processor.shutdown();
        System.out.println(site.load());
    }
View Full Code Here

TOP

Related Classes of ru.decipher.proxy.source.ProxySourceSite

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.