Modifier and Type | Class and Description |
---|---|
static class |
VRequest.Builder<T extends VRequest.Builder<T>>
A builder for VRequest class
|
Request.Method
Modifier | Constructor and Description |
---|---|
|
VRequest(String url) |
|
VRequest(String url,
Map<String,String> headers) |
protected |
VRequest(VRequest.Builder<?> builder) |
Modifier and Type | Method and Description |
---|---|
static VRequest.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 VRequest(String url)
protected VRequest(VRequest.Builder<?> builder)
public static VRequest.Builder build(Request.Method method, String url)
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
Copyright © 2018. All rights reserved.