package org.wamblee.crawler;
+import org.apache.commons.httpclient.NameValuePair;
+
/**
- * Represents a crawled page.
+ * The object that actually obtains pages based on URL.
*/
public interface Crawler {
/**
* Gets the content for a specific page.
* @param aUrl Url of page.
+ * @param aParameters Paremeters to supply.
* @return Page to retrieve.
* @throws PageException In case of problems retrieving the page.
*/
- Page getPage(String aUrl) throws PageException;
+ Page getPage(String aUrl, NameValuePair[] aParameters) throws PageException;
/**
* Gets the content for a specific page.
- * @param aUrl Url of page.
+ * @param aUrl Url of page.
+ * @param aParameters Parameters to supply.
* @param aType Type of page.
* @return Page.
* @throws PageException In case of problems retrieving the page.
*/
- Page getPage(String aUrl, PageType aType) throws PageException;
+ Page getPage(String aUrl, NameValuePair[] aParameters, PageType aType) throws PageException;
}