this.processor = processor;
}
@Override
public HTMLPageResponse get(PageURL url, boolean fetchBody, Map<String, String> requestHeaders, boolean followRedirectsToNewDomain) {
HTMLPageResponse response = super.get(url, fetchBody, requestHeaders, followRedirectsToNewDomain);
if (response.getResponseCode() == 200 && response.getResponseType().startsWith("text")) {
processor.process(response.getBody());
}
return response;
}