package org.wamblee.crawler;
+import java.io.IOException;
import java.io.PrintStream;
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);
}
+ /**
+ * 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);
}
return executeMethod(aClient, method);
} catch (TransformerException e) {
throw new PageException(e.getMessage(), e);
+ } catch (IOException e) {
+ throw new PageException(e.getMessage(), e);
}
}