Package org.wikipediacleaner.api.request

Examples of org.wikipediacleaner.api.request.ApiLinksRequest


   * @see <a href="http://www.mediawiki.org/wiki/API:Properties#links_.2F_pl">API:Properties#links</a>
   */
  public void retrieveLinks(EnumWikipedia wiki, Collection<Page> pages)
      throws APIException {
    ApiLinksResult result = new ApiXmlLinksResult(wiki, httpClient);
    ApiLinksRequest request = new ApiLinksRequest(wiki, result);
    request.loadLinks(pages);
  }
View Full Code Here


      EnumWikipedia wiki, Page page, Integer namespace,
      List<Page> knownPages,
      boolean redirects, boolean disambigNeeded)
      throws APIException {
    ApiLinksResult result = new ApiXmlLinksResult(wiki, httpClient);
    ApiLinksRequest request = new ApiLinksRequest(wiki, result);
    boolean useDisambig = wiki.getConfiguration().getBoolean(
        WPCConfigurationBoolean.DAB_USE_DISAMBIG_MAGIC_WORD);
    List<Page> redirections = redirects ? new ArrayList<Page>() : null;
    request.loadLinks(page, namespace, knownPages, redirections, useDisambig);

    // TODO: Better management of redirections (class)
    if ((redirections != null) && !redirections.isEmpty()) {
      initializeDisambiguationStatus(wiki, redirections, true);
      retrieveContentsWithoutRedirects(wiki, redirections);
View Full Code Here

TOP

Related Classes of org.wikipediacleaner.api.request.ApiLinksRequest

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.