support for parameters on actions.
[utils] / crawler / basic / src / org / wamblee / crawler / Action.java
index a4df7a1fc736e0186236c61a86a63fdcf80cb3f6..f24cacd0ea4547c11a9afec2af5201d49c325e0a 100644 (file)
@@ -16,6 +16,7 @@
 
 package org.wamblee.crawler;
 
+import org.apache.commons.httpclient.NameValuePair;
 import org.dom4j.Element;
 
 /**
@@ -31,14 +32,15 @@ public interface Action {
     
     /**
      * Executes the action. 
-     * @return
+     * @return New page as a result of the action.
+     * @throws PageException In case of an error obtaining the page. 
      */
-    Page execute();
+    Page execute() throws PageException;
     
     /**
      * Gets a description of the action. THe element returned is the action element
      * itself. 
-     * @return
+     * @return Content as XML.
      */
     Element getContent();
 }