public class CrawlerRequest extends Object implements Request, Unwrappable
Request.Method| Constructor and Description |
|---|
CrawlerRequest(Request request) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBody()
Returns the request body of the request or null if none specified
|
Map<String,String> |
getHeaders()
Returns the headers set for the request
|
Request |
getInner()
Returns the unwrapped version of this request
|
Request.Method |
getMethod()
Returns the method type of the request
|
org.apache.http.HttpHost |
getProxy()
Returns the proxy set to be used for the request or default to
fetcher if none specified
|
SleepScheduler |
getSleepScheduler()
Returns information about the amount of sleep before this request
is made
|
String |
getUrl()
Returns the url of the request
|
void |
removeProxy() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitunwrapRequestpublic CrawlerRequest(Request request)
public Request.Method getMethod()
Requestpublic String getBody()
Requestpublic String getUrl()
Requestpublic Map<String,String> getHeaders()
RequestgetHeaders in interface Requestpublic org.apache.http.HttpHost getProxy()
Requestpublic void removeProxy()
public SleepScheduler getSleepScheduler()
RequestgetSleepScheduler in interface Requestpublic Request getInner()
UnwrappablegetInner in interface UnwrappableCopyright © 2018. All rights reserved.