public static class FetchOptions.Builder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Authentication |
auth |
protected String |
contentType |
protected JsonNode |
data |
protected InputStream |
fileStream |
protected Boolean |
followRedirects |
protected Map<String,String> |
headers |
protected String |
method |
protected List<MultipartItem> |
multipartData |
protected NetworkSession |
networkSession |
protected Map<String,String> |
params |
protected EnumWrapper<ResponseFormat> |
responseFormat |
protected String |
url |
| Modifier and Type | Method and Description |
|---|---|
FetchOptions.Builder |
auth(Authentication auth) |
FetchOptions |
build() |
FetchOptions.Builder |
contentType(String contentType) |
FetchOptions.Builder |
data(JsonNode data) |
FetchOptions.Builder |
fileStream(InputStream fileStream) |
FetchOptions.Builder |
followRedirects(Boolean followRedirects) |
FetchOptions.Builder |
headers(Map<String,String> headers) |
FetchOptions.Builder |
multipartData(List<MultipartItem> multipartData) |
FetchOptions.Builder |
networkSession(NetworkSession networkSession) |
FetchOptions.Builder |
params(Map<String,String> params) |
FetchOptions.Builder |
responseFormat(EnumWrapper<ResponseFormat> responseFormat) |
FetchOptions.Builder |
responseFormat(ResponseFormat responseFormat) |
protected JsonNode data
protected InputStream fileStream
protected List<MultipartItem> multipartData
protected String contentType
protected EnumWrapper<ResponseFormat> responseFormat
protected Authentication auth
protected NetworkSession networkSession
protected Boolean followRedirects
public FetchOptions.Builder params(Map<String,String> params)
public FetchOptions.Builder headers(Map<String,String> headers)
public FetchOptions.Builder data(JsonNode data)
public FetchOptions.Builder fileStream(InputStream fileStream)
public FetchOptions.Builder multipartData(List<MultipartItem> multipartData)
public FetchOptions.Builder contentType(String contentType)
public FetchOptions.Builder responseFormat(ResponseFormat responseFormat)
public FetchOptions.Builder responseFormat(EnumWrapper<ResponseFormat> responseFormat)
public FetchOptions.Builder auth(Authentication auth)
public FetchOptions.Builder networkSession(NetworkSession networkSession)
public FetchOptions.Builder followRedirects(Boolean followRedirects)
public FetchOptions build()