(no commit message)
[utils] / crawler / basic / src / org / wamblee / crawler / GetPageRequest.java
index 9a9d02e4ed2536f8619bc7f23dc13fac67255754..2ce267ee828e72757efd2d5d22e0c7ea83dda963 100644 (file)
@@ -16,6 +16,7 @@
 
 package org.wamblee.crawler;
 
+import java.io.IOException;
 import java.io.PrintStream;
 
 import javax.xml.transform.TransformerException;
@@ -31,10 +32,25 @@ import org.w3c.dom.Document;
  */
 public class GetPageRequest extends AbstractPageRequest {
 
+    /**
+     * Constructs the request.
+     * @param aMaxTries Maximum number of retries. 
+     * @param aMaxDelay Maximum delay before executing the request.
+     * @param aParams Request parameters to use. 
+     * @param aXslt XSLT to use. 
+     */
     public GetPageRequest(int aMaxTries, int aMaxDelay, NameValuePair[] aParams, String aXslt) {
         super(aMaxTries, aMaxDelay, aParams, aXslt, null);
     }
 
+    /**
+     * Constructs the request.
+     * @param aMaxTries Maximum number of retries. 
+     * @param aMaxDelay Maximum delay before executing the request.
+     * @param aParams Request parameters to use. 
+     * @param aXslt XSLT to use.
+     * @param aOs Logging output stream to use.  
+     */
     public GetPageRequest(int aMaxTries, int aMaxDelay, NameValuePair[] aParams, String aXslt, PrintStream aOs) {
         super(aMaxTries, aMaxDelay, aParams, aXslt, aOs);
     }
@@ -60,6 +76,8 @@ public class GetPageRequest extends AbstractPageRequest {
             return executeMethod(aClient, method);
         } catch (TransformerException e) {
             throw new PageException(e.getMessage(), e);
+        } catch (IOException e) { 
+            throw new PageException(e.getMessage(), e);
         }
     }