Package org.wikipediacleaner.api

Examples of org.wikipediacleaner.api.HttpServer


    if (!useBotList) {
      properties.put("view", "bots");
      String url = useLabs ?
          "checkwiki/cgi-bin/checkwiki.cgi" :
          "~sk/cgi-bin/checkwiki/checkwiki.cgi";
      HttpServer server = useLabs ? labs : toolServer;
      server.sendPost(
          url, properties,
          new PagesResponseManager(true, algorithm, wiki, errors));
    } else {
      properties.put("action", "list");
      String url = useLabs ?
          "checkwiki/cgi-bin/checkwiki_bots.cgi" :
          "~sk/cgi-bin/checkwiki/checkwiki_bots.cgi";
      HttpServer server = useLabs ? labs : toolServer;
      server.sendPost(
          url, properties,
          new PagesResponseManager(false, algorithm, wiki, errors));
    }
  }
View Full Code Here


      final CheckErrorAlgorithm algorithm) {
    boolean useLabs = wiki.getConfiguration().getBoolean(WPCConfigurationBoolean.CW_USE_LABS);
    String path = useLabs ?
        "checkwiki/cgi-bin/checkwiki.cgi" :
        "~sk/cgi-bin/checkwiki/checkwiki.cgi";
    HttpServer server = useLabs ? labs : toolServer;
    String url =
        server.getBaseUrl() + path +
        "?id=" + algorithm.getErrorNumberString() +
        "&project=" + wiki.getSettings().getCodeCheckWiki() +
        "&view=only";
    return url;
  }
View Full Code Here

TOP

Related Classes of org.wikipediacleaner.api.HttpServer

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.