| Modifier and Type | Class and Description |
|---|---|
static class |
BasicRequest.Builder<T extends BasicRequest.Builder<T>>
A builder for BasicRequest class
|
Request.Method| Modifier | Constructor and Description |
|---|---|
protected |
BasicRequest(BasicRequest.Builder<?> builder) |
|
BasicRequest(String url) |
|
BasicRequest(String url,
Map<String,String> headers) |
| Modifier and Type | Method and Description |
|---|---|
static BasicRequest.Builder |
build(Request.Method method,
String url) |
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
|
SleepScheduler |
getSleepScheduler()
Returns information about the amount of sleep before this request
is made
|
String |
getUrl()
Returns the url of the request
|
public BasicRequest(String url)
protected BasicRequest(BasicRequest.Builder<?> builder)
public static BasicRequest.Builder build(Request.Method method, String url)
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.