git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
support for parameters on actions.
[utils]
/
crawler
/
basic
/
src
/
org
/
wamblee
/
crawler
/
Crawler.java
diff --git
a/crawler/basic/src/org/wamblee/crawler/Crawler.java
b/crawler/basic/src/org/wamblee/crawler/Crawler.java
index 00d1283aeee1324705acf6661c07bd4ed30ddb80..3615d9bc3a1e612e620725140a383fd17ac8e41b 100644
(file)
--- a/
crawler/basic/src/org/wamblee/crawler/Crawler.java
+++ b/
crawler/basic/src/org/wamblee/crawler/Crawler.java
@@
-16,6
+16,8
@@
package org.wamblee.crawler;
package org.wamblee.crawler;
+import org.apache.commons.httpclient.NameValuePair;
+
/**
* The object that actually obtains pages based on URL.
/**
* The object that actually obtains pages based on URL.
@@
-25,17
+27,19
@@
public interface Crawler {
/**
* Gets the content for a specific page.
* @param aUrl Url of page.
/**
* 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.
*/
* @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.
/**
* 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.
*/
* @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;
}
}