private HttpAction generateRequest(int[] namespace, String orstart, String orend) {

    RequestBuilder requestBuilder =
        new ApiRequestBuilder() //
            .action("query") //
            .formatXml() //
            .param("list", "oldreviewedpages") //
            .param("orlimit", LIMIT) //
        ;
    if (namespace != null) {
      String ornamespace = MediaWiki.urlEncode(MWAction.createNsString(namespace));
      requestBuilder.param("ornamespace", ornamespace);
    }
    if (orstart.length() > 0) {
      requestBuilder.param("orstart", orstart);
    }
    if (orend.length() > 0) {
      requestBuilder.param("orend", orend);
    }

    return requestBuilder.buildGet();
  }
private HttpAction generateRequest ( int [ ] namespace , String orstart , String orend ) { RequestBuilder requestBuilder = new ApiRequestBuilder ( ) . action ( "query" ) . formatXml ( ) . param ( "list" , "oldreviewedpages" ) . param ( "orlimit" , LIMIT ) ; if ( namespace != null ) { String ornamespace = MediaWiki . urlEncode ( MWAction . createNsString ( namespace ) ) ; requestBuilder . param ( "ornamespace" , ornamespace ) ; } if ( orstart . length ( ) > 0 ) { requestBuilder . param ( "orstart" , orstart ) ; } if ( orend . length ( ) > 0 ) { requestBuilder . param ( "orend" , orend ) ; } return requestBuilder . buildGet ( ) ; }
generates the next MediaWiki-request (GetMethod) and adds it to msgs.

@param namespace the namespace(s) that will be searched for links, as a string of numbers
separated by '|'; if null, this parameter is omitted
@param orstart Start listing at this timestamp
@param orend Stop listing at this timestamp