public class FetchOptions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FetchOptions.Builder |
| Modifier and Type | Field and Description |
|---|---|
Authentication |
auth
Authentication object
|
String |
contentType
Content type of the request body
|
JsonNode |
data
Request body of the request
|
InputStream |
fileStream
Stream data of the request
|
Boolean |
followRedirects
A boolean value indicate if the request should follow redirects.
|
Map<String,String> |
headers
HTTP headers
|
String |
method
HTTP verb of the request
|
List<MultipartItem> |
multipartData
Multipart data of the request
|
NetworkSession |
networkSession
Network session object
|
Map<String,String> |
params
HTTP query parameters
|
EnumWrapper<ResponseFormat> |
responseFormat
Expected response format
|
String |
url
URL of the request
|
| Modifier | Constructor and Description |
|---|---|
protected |
FetchOptions(FetchOptions.Builder builder) |
|
FetchOptions(String url,
String method) |
| Modifier and Type | Method and Description |
|---|---|
Authentication |
getAuth() |
String |
getContentType() |
JsonNode |
getData() |
InputStream |
getFileStream() |
Boolean |
getFollowRedirects() |
Map<String,String> |
getHeaders() |
String |
getMethod() |
List<MultipartItem> |
getMultipartData() |
NetworkSession |
getNetworkSession() |
Map<String,String> |
getParams() |
EnumWrapper<ResponseFormat> |
getResponseFormat() |
String |
getUrl() |
public JsonNode data
public InputStream fileStream
public List<MultipartItem> multipartData
public String contentType
public EnumWrapper<ResponseFormat> responseFormat
public Authentication auth
public NetworkSession networkSession
public Boolean followRedirects
public FetchOptions(String url, String method)
protected FetchOptions(FetchOptions.Builder builder)
public Map<String,String> getHeaders()
public JsonNode getData()
public InputStream getFileStream()
public List<MultipartItem> getMultipartData()
public String getContentType()
public EnumWrapper<ResponseFormat> getResponseFormat()
public Authentication getAuth()
public NetworkSession getNetworkSession()
public Boolean getFollowRedirects()