package org.wamblee.crawler;
import org.apache.commons.httpclient.HttpClient;
+import org.apache.commons.httpclient.NameValuePair;
import org.w3c.dom.Document;
/**
public interface PageRequest {
/**
- * Gets a page as an XML document.
+ * Gets a page as an XML document.
+ * @param aUrl Url of the page.
+ * @param aParams Additional parameters to supply.
* @param aClient Http client to use.
* @return Client.
+ * @throws PageException In case of problems retrieving the page.
*/
- Document execute(String aUrl, HttpClient aClient);
+ Document execute(String aUrl, NameValuePair[] aParams, HttpClient aClient) throws PageException;
/**
- * Overrides the Xslt to use.
+ * Overrides the Xslt to use. This is used when the transformed page specifies
+ * the page type explicitly for an action.
* @param aXslt Xslt to use.
*/
void overrideXslt(String aXslt);