Search in sources :

Example 1 with ThreadID

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;
}
Also used : NameValuePair(org.apache.commons.httpclient.NameValuePair) PostRequest(org.eclipse.ecf.internal.bulletinboard.commons.webapp.PostRequest) WebRequest(org.eclipse.ecf.internal.bulletinboard.commons.webapp.WebRequest) ThreadID(org.eclipse.ecf.internal.provider.phpbb.identity.ThreadID)

Aggregations

NameValuePair (org.apache.commons.httpclient.NameValuePair)1 PostRequest (org.eclipse.ecf.internal.bulletinboard.commons.webapp.PostRequest)1 WebRequest (org.eclipse.ecf.internal.bulletinboard.commons.webapp.WebRequest)1 ThreadID (org.eclipse.ecf.internal.provider.phpbb.identity.ThreadID)1