public class FastestFirstRequest extends Object implements Request
Request.Method| Constructor and Description |
|---|
FastestFirstRequest(Request request) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Request request) |
void |
addFor(Request request,
int times) |
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.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
|
List<Request> |
getRequests() |
SleepScheduler |
getSleepScheduler()
Returns information about the amount of sleep before this request
is made
|
String |
getUrl()
Returns the url of the request
|
public FastestFirstRequest(Request request)
public void add(Request request)
public void addFor(Request request, int times)
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 SleepScheduler getSleepScheduler()
RequestgetSleepScheduler in interface RequestCopyright © 2018. All rights reserved.