(no commit message)
[utils] / crawler / basic / src / org / wamblee / crawler / PostPageRequest.java
index 5fbc0e31c6642959cee5dcbc1147bc0ddac8751c..db1f2eb9c9b93c4f632157469a681d9fde99a509 100644 (file)
@@ -16,7 +16,7 @@
 
 package org.wamblee.crawler;
 
-import java.io.PrintStream;
+import java.io.IOException;
 
 import javax.xml.transform.TransformerException;
 
@@ -38,20 +38,7 @@ public class PostPageRequest extends AbstractPageRequest {
      * @param aXslt XSLT to use.  
      */
     public PostPageRequest(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 PostPageRequest(int aMaxTries, int aMaxDelay, NameValuePair[] aParams, String aXslt,
-            PrintStream aOs) {
-        super(aMaxTries, aMaxDelay, aParams, aXslt, aOs);
+        super(aMaxTries, aMaxDelay, aParams, aXslt);
     }
 
     /*
@@ -68,6 +55,8 @@ public class PostPageRequest extends AbstractPageRequest {
             return executeMethod(aClient, method);
         } catch (TransformerException e) {
             throw new PageException(e.getMessage(), e);
+        } catch (IOException e) { 
+            throw new PageException(e.getMessage(), e);
         }
     }