package org.wamblee.crawler;
-import java.io.PrintStream;
+import java.io.IOException;
import javax.xml.transform.TransformerException;
*/
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);
- }
-
- public GetPageRequest(int aMaxTries, int aMaxDelay, NameValuePair[] aParams, String aXslt, PrintStream aOs) {
- super(aMaxTries, aMaxDelay, aParams, aXslt, aOs);
+ super(aMaxTries, aMaxDelay, aParams, aXslt);
}
-
+
/*
* (non-Javadoc)
*
return executeMethod(aClient, method);
} catch (TransformerException e) {
throw new PageException(e.getMessage(), e);
+ } catch (IOException e) {
+ throw new PageException(e.getMessage(), e);
}
}