Examples of ProtocolFactory


Examples of com.digitalpebble.storm.crawler.protocol.ProtocolFactory

                new MultiCountMetric(), 10);

        this.metricGauge = context.registerMetric("fetcher",
                new MultiCountMetric(), 10);

        protocolFactory = new ProtocolFactory(conf);

        this.fetchQueues = new FetchItemQueues(getConf());

        this.taskIndex = context.getThisTaskIndex();
View Full Code Here

Examples of com.esri.gpt.control.webharvest.protocol.ProtocolFactory

    NodeList lstProtocol = (NodeList) xpath.evaluate("protocol", ndProtocols, XPathConstants.NODESET);
    for (Node ndProto : new NodeListAdapter(lstProtocol)) {
      String factoryClass = (String) xpath.evaluate("@factoryClass", ndProto, XPathConstants.STRING);
      try {
        Class fc = Class.forName(factoryClass);
        ProtocolFactory factory = (ProtocolFactory) fc.newInstance();
        ProtocolInitializer.init(factory, ndProto);
        String resourceKey = Val.chkStr((String) xpath.evaluate("@resourceKey", ndProto, XPathConstants.STRING));
        factories.put(factory.getName(), factory, resourceKey);
      } catch (Exception ex) {
        getLogger().log(Level.WARNING, "Error loading protocol: "+factoryClass, ex);
      }
     
      String validatorFactoryClass = Val.chkStr((String) xpath.evaluate("validator/@factoryClass", ndProto, XPathConstants.STRING));
View Full Code Here

Examples of com.volantis.mcs.protocols.builder.ProtocolFactory

        domFactory = DOMFactory.getDefaultInstance();
    }

    public void testHrefMakeChild() throws IOException {

        ProtocolFactory factory = new ProtocolRegistry.HTMLVersion4_0Factory();
        ProtocolBuilder builder = new ProtocolBuilder();

        DOMProtocol protocol = (DOMProtocol)builder.build(factory, null);

        Document document = domFactory.createDocument();
View Full Code Here

Examples of com.volantis.mcs.protocols.builder.ProtocolFactory

    }

    public void testHrefMakeParent() throws IOException {

        ProtocolFactory factory = new ProtocolRegistry.HTMLVersion4_0Factory();
        ProtocolBuilder builder = new ProtocolBuilder();

        DOMProtocol protocol = (DOMProtocol)builder.build(factory, null);

        Document document = domFactory.createDocument();
View Full Code Here

Examples of com.volantis.mcs.protocols.builder.ProtocolFactory

    }

    public void testHrefPushDown() throws IOException {

        ProtocolFactory factory = new ProtocolRegistry.HTMLVersion4_0Factory();
        ProtocolBuilder builder = new ProtocolBuilder();

        DOMProtocol protocol = (DOMProtocol)builder.build(factory, null);

        Document document = domFactory.createDocument();
View Full Code Here

Examples of com.volantis.mcs.protocols.builder.ProtocolFactory

    }

    public void testHrefIgnore() throws IOException {

        ProtocolFactory factory = new ProtocolRegistry.HTMLVersion4_0Factory();
        ProtocolBuilder builder = new ProtocolBuilder();

        DOMProtocol protocol = (DOMProtocol)builder.build(factory, null);

        Document document = domFactory.createDocument();
View Full Code Here

Examples of org.apache.commons.httpclient.protocol.ProtocolFactory

        params.getParameter("MetaCartaWSLocation");


      // Set up ssl if indicated
      String keystoreData = params.getParameter( "MeridioKeystore" );
      myFactory = new ProtocolFactory();

      if (keystoreData != null)
      {
        IKeystoreManager keystoreManager = KeystoreManagerFactory.make("",keystoreData);
        MeridioSecureSocketFactory secureSocketFactory = new MeridioSecureSocketFactory(keystoreManager.getSecureSocketFactory());
View Full Code Here

Examples of org.apache.droids.helper.factories.ProtocolFactory

    parserFactory.getMap().put("text/html", htmlParser);
    return parserFactory;
  }

  public static ProtocolFactory createDefaultProtocolFactory() {
    ProtocolFactory protocolFactory = new ProtocolFactory();
    HttpProtocol httpProtocol = new HttpProtocol();
    httpProtocol.setForceAllow(true);
   
    protocolFactory.setMap(new HashMap<String, Object>());
    protocolFactory.getMap().put("http", httpProtocol);
    return protocolFactory;
  }
View Full Code Here

Examples of org.apache.droids.helper.factories.ProtocolFactory

  }
 
  public static Droid<Link> createSimpleSaveCrawlingDroid(
      String targetURI) {
    ParserFactory parserFactory = createDefaultParserFactory();
    ProtocolFactory protocolFactory = createDefaultProtocolFactory();
    URLFiltersFactory filtersFactory = createDefaultURLFiltersFactory();

    SimpleDelayTimer simpleDelayTimer = new SimpleDelayTimer();
    simpleDelayTimer.setDelayMillis(100);
   
View Full Code Here

Examples of org.apache.droids.helper.factories.ProtocolFactory

  }
 
  public static Droid<Link> createSimpleReportCrawlingDroid(
      String targetURI) {
    ParserFactory parserFactory = createDefaultParserFactory();
    ProtocolFactory protocolFactory = createDefaultProtocolFactory();
    URLFiltersFactory filtersFactory = createDefaultURLFiltersFactory();

    SimpleDelayTimer simpleDelayTimer = new SimpleDelayTimer();
    simpleDelayTimer.setDelayMillis(100);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.