use of org.eclipse.ecf.internal.provider.phpbb.identity.ThreadID in project ecf by eclipse.
the class ThreadBrowser2 method createRequest.
public WebRequest createRequest(int page) {
/*
* String ppStr =
* bb.getActiveConfiguration().getProperties().getProperty(
* IBBConfiguration.P_POSTS_PER_PAGE);
*/
int pp = 15;
int start = (page - 1) * pp;
WebRequest req = new PostRequest(bb.getHttpClient(), bb.getURL(), "viewtopic.php?t=" + ((ThreadID) thread.getID()).getLongValue() + "&start=" + start);
req.addParameter(new NameValuePair("postorder", "desc"));
req.addParameter(new NameValuePair("postdays", "0"));
req.addParameter(new NameValuePair("submit", "Go"));
return req;
}
Aggregations