public class HttpFetcherRequest extends Object implements Request, Unwrappable
Request.Method
Constructor and Description |
---|
HttpFetcherRequest(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
|
HttpFetcherRequest |
prependHeaders(Map<String,String> preHeaders) |
HttpFetcherRequest |
setProxy(org.apache.http.HttpHost proxy) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
unwrapRequest
public HttpFetcherRequest(Request request)
public HttpFetcherRequest setProxy(org.apache.http.HttpHost proxy)
public HttpFetcherRequest prependHeaders(Map<String,String> preHeaders)
public Request.Method getMethod()
Request
public String getBody()
Request
public String getUrl()
Request
public Map<String,String> getHeaders()
Request
getHeaders
in interface Request
public org.apache.http.HttpHost getProxy()
Request
public SleepScheduler getSleepScheduler()
Request
getSleepScheduler
in interface Request
public Request getInner()
Unwrappable
getInner
in interface Unwrappable
Copyright © 2018. All rights reserved.