public class WebHarvestHttpConnector
extends java.lang.Object
| Constructor and Description |
|---|
WebHarvestHttpConnector() |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getInputStream(Scraper scraper,
java.lang.String url) |
com.freedomoss.crowdcontrol.validator.web.ValidationResponse |
performGetHttpRequest(Scraper scraper,
java.lang.String url)
Perform http get request, using scraper settings, and by the stated url, if scraper is null,
connector use default http client
|
com.freedomoss.crowdcontrol.validator.web.ValidationResponse |
performGetHttpRequest(Scraper scraper,
java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> headers)
Perform http get request, using scraper settings, and by the stated url, if scraper is null,
connector use default http client
|
public com.freedomoss.crowdcontrol.validator.web.ValidationResponse performGetHttpRequest(Scraper scraper,
java.lang.String url)
scraper - web harvest object with http settingsurl - the stated url to requestpublic com.freedomoss.crowdcontrol.validator.web.ValidationResponse performGetHttpRequest(Scraper scraper,
java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> headers)
scraper - web harvest object with http settingsurl - the stated url to requestheaders - headers to be added to http requestpublic java.io.InputStream getInputStream(Scraper scraper,
java.lang.String url)
throws java.io.IOException
java.io.IOException