Package net.sourceforge.jwbf.core.actions

Examples of net.sourceforge.jwbf.core.actions.Get


        String ilcontinue) {

      String uS = "/api.php?action=query&list=imageusage"
        + "&iucontinue=" + MediaWiki.encode(ilcontinue)
        + "&iulimit=" + LIMIT + "&format=xml";
      return new Get(uS);
    }
View Full Code Here


        + "&iutitle="
        + MediaWiki.encode(imageName)
        + ((namespace != null && namespace.length() != 0) ? ("&iunamespace=" + MediaWiki
            .encode(namespace))
            : "") + "&iulimit=" + LIMIT + "&format=xml";
      return new Get(uS);

    }
View Full Code Here

        String ilcontinue) {

      String uS = "/api.php?action=query&list=imagelinks"
        + "&ilcontinue=" + MediaWiki.encode(ilcontinue)
        + "&illimit=" + LIMIT + "&format=xml";
      return new Get(uS);
    }
View Full Code Here

      String uS = "/api.php?action=query&list=imagelinks"
        + "&titles="
        + MediaWiki.encode(imageName)
        + ((namespace != null && namespace.length() != 0) ? ("&ilnamespace=" + MediaWiki.encode(namespace))
            : "") + "&illimit=" + LIMIT + "&format=xml";
      return new Get(uS);

    }
View Full Code Here

        //+ "&rcusertype=" // (dflt=not|bot)
        + "&rclimit=" + limit + "&format=xml";
    }


    return new Get(uS);


  }
View Full Code Here

      + ((namespace != null && namespace.length() != 0) ? ("&einamespace=" + MediaWiki.encode(namespace)) : "")
      + "&format=xml";

    }

    return new Get(uS);

  }
View Full Code Here

   */
  public GetUserinfo(Version v) throws VersionException {
    super(v);
    switch (v) {
      case MW1_11:
        msg = new Get("/api.php?" + "action=query&" + "meta=userinfo&"
            + "uiprop="
            + MediaWiki.encode("blockinfo|hasmsg|groups|rights") + "&"
            + "format=xml");

        break;
      default:
        msg = new Get(
            "/api.php?"
            + "action=query&"
            + "meta=userinfo&"
            + "uiprop="
            + MediaWiki
View Full Code Here

    this.a = a;
    String uS = "/index.php?title="
      + MediaWiki.encode(a.getTitle())
      + "&action=edit&dontcountme=s";

    g = new Get(uS);

  }
View Full Code Here

    }
    sa = new SimpleArticle();
    sa.setTitle(articlename);

   
    contentGet = new Get("/" + articlename + "?format=txt");
    versionGet = new Get("/" + articlename);
    if (LOG.isDebugEnabled()) {
      LOG.debug(contentGet.getRequest());
      LOG.debug(versionGet.getRequest());
    }
View Full Code Here

      throws ProcessException {
    if (hm == contentGet) {
      sa.setText(s);
    } else if (hm == versionGet) {
      parseVersion(s);
      metaGet = new Get("/" + sa.getTitle() + "?action=diff&version=" + version);
     
    } else if (hm == metaGet) {
      parse(s);
    }
    return "";
View Full Code Here

TOP

Related Classes of net.sourceforge.jwbf.core.actions.Get

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.