|
Esri Geoportal Server 1.2.9
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.gpt.framework.http.HttpClientRequest
com.esri.gpt.framework.http.crawl.HttpCrawlRequest
public class HttpCrawlRequest
Http crawl request.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.esri.gpt.framework.http.HttpClientRequest |
|---|
HttpClientRequest.MethodName |
| Field Summary |
|---|
| Fields inherited from class com.esri.gpt.framework.http.HttpClientRequest |
|---|
DEFAULT_CONNECTION_TIMEOUT, DEFAULT_RESPONSE_TIMEOUT |
| Constructor Summary | |
|---|---|
HttpCrawlRequest(Bots robotsTxt)
Creates instance of the request. |
|
| Method Summary | |
|---|---|
void |
execute()
Executes the HTTP request. |
String |
getUrl()
Gets the URL for the request. |
protected Long |
resolveThrottleDelay(Bots bots)
Gets throttle delay. |
| Methods inherited from class com.esri.gpt.framework.http.HttpClientRequest |
|---|
createMethod, getBatchHttpClient, getConnectionTimeOutMs, getContentHandler, getContentProvider, getCredentialProvider, getExecutionLog, getMethodName, getResponseInfo, getResponseTimeOutMs, getRetries, newRequest, newRequest, readResponseAsCharacters, setBatchHttpClient, setConnectionTimeMs, setContentHandler, setContentProvider, setCredentialProvider, setMethodName, setRequestHeader, setResponseInfo, setResponseTimeOutMs, setRetries, setUrl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpCrawlRequest(Bots robotsTxt)
robotsTxt - robots.txt or null if robots not available| Method Detail |
|---|
public void execute()
throws IOException
HttpClientRequest
execute in class HttpClientRequestIOException - if an Exception occurspublic String getUrl()
HttpClientRequest
getUrl in class HttpClientRequestprotected Long resolveThrottleDelay(Bots bots)
Throttle delay might be a result of "Crawl-Delay" value read from robots.txt or it might be override to implement custom throttle policy.
bots - robots.txt or null if robots.txt unavailable
null if no throttling required.
|
Esri Geoportal Server 1.2.9
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||