public class ClientExecutorTask<F> extends Object implements ClientTaskImpl<F>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowAllSsl |
protected boolean |
allowRedirect |
protected okhttp3.Cache |
cache |
protected AtomicBoolean |
cancelled |
protected okhttp3.RequestBody |
postData |
protected okhttp3.Headers |
requestHeaders |
protected RequestMode |
requestMode |
protected long |
requestTimeout |
protected Uri |
requestUri |
protected ResponseHandler |
response |
| Constructor and Description |
|---|
ClientExecutorTask(RequestMode mode,
Uri request,
okhttp3.Headers headers,
okhttp3.RequestBody postData,
ResponseHandler response,
boolean allowRedirect,
boolean allowAllSsl,
long requestTimeout,
okhttp3.Cache cache) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Initiate a cancellation of the request
|
F |
executeTask()
Executes the request task
|
boolean |
isCancelled()
Returns if the request has been cancelled
|
void |
postExecute()
Called after the execution of the task
|
void |
preExecute()
Called before the request has been executed
|
void |
transferProgress(Packet packet)
Called when a packet transfer has been made
|
protected ResponseHandler response
protected Uri requestUri
protected okhttp3.Headers requestHeaders
protected okhttp3.RequestBody postData
protected RequestMode requestMode
protected boolean allowRedirect
protected boolean allowAllSsl
protected long requestTimeout
protected okhttp3.Cache cache
protected AtomicBoolean cancelled
public ClientExecutorTask(RequestMode mode, Uri request, okhttp3.Headers headers, okhttp3.RequestBody postData, ResponseHandler response, boolean allowRedirect, boolean allowAllSsl, long requestTimeout, okhttp3.Cache cache)
public boolean isCancelled()
ClientTaskImplisCancelled in interface ClientTaskImpl<F>public void cancel()
ClientTaskImplcancel in interface ClientTaskImpl<F>public void preExecute()
ClientTaskImplpreExecute in interface ClientTaskImpl<F>public F executeTask()
ClientTaskImplexecuteTask in interface ClientTaskImpl<F>public void postExecute()
ClientTaskImplpostExecute in interface ClientTaskImpl<F>public void transferProgress(Packet packet)
ClientTaskImpltransferProgress in interface ClientTaskImpl<F>packet - The data-wrapper with information about the transfer request