(no commit message)
[utils] / crawler / basic / src / org / wamblee / crawler / GetPageRequest.java
index 3da77b83899eac83a9cc2851300f4fb6b1cc9d61..1d92b024b78241629b8d748d23e4fbdea8b1d11b 100644 (file)
@@ -16,7 +16,7 @@
 
 package org.wamblee.crawler;
 
-import java.io.PrintStream;
+import java.io.IOException;
 
 import javax.xml.transform.TransformerException;
 
@@ -39,21 +39,9 @@ public class GetPageRequest extends AbstractPageRequest {
      * @param aXslt XSLT to use. 
      */
     public GetPageRequest(int aMaxTries, int aMaxDelay, NameValuePair[] aParams, String aXslt) {
-        super(aMaxTries, aMaxDelay, aParams, aXslt, null);
+        super(aMaxTries, aMaxDelay, aParams, aXslt);
     }
-
-    /**
-     * 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);
-    }
-
+    
     /*
      * (non-Javadoc)
      * 
@@ -75,6 +63,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);
         }
     }