public abstract class RangeFileAsyncHttpResponseHandler extends FileAsyncHttpResponseHandler
file, frontendFile, renameIfExistsBUFFER_SIZE, CANCEL_MESSAGE, DEFAULT_CHARSET, FAILURE_MESSAGE, FINISH_MESSAGE, PROGRESS_MESSAGE, RETRY_MESSAGE, START_MESSAGE, SUCCESS_MESSAGE, UTF8_BOM| Constructor and Description |
|---|
RangeFileAsyncHttpResponseHandler(java.io.File file)
Obtains new RangeFileAsyncHttpResponseHandler and stores response in passed file
|
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
getResponseData(cz.msebera.android.httpclient.HttpEntity entity)
Returns byte array of response HttpEntity contents
|
void |
sendResponseMessage(cz.msebera.android.httpclient.HttpResponse response)
Returns data whether request completed successfully
|
void |
updateRequestHeaders(cz.msebera.android.httpclient.client.methods.HttpUriRequest uriRequest) |
deleteTargetFile, getOriginalFile, getTargetFile, getTargetFileByParsingURL, getTemporaryFile, onFailure, onFailure, onSuccess, onSuccessgetCharset, getRequestHeaders, getRequestURI, getTag, getUsePoolThread, getUseSynchronousMode, handleMessage, obtainMessage, onCancel, onFinish, onPostProcessResponse, onPreProcessResponse, onProgress, onRetry, onStart, onUserException, postRunnable, sendCancelMessage, sendFailureMessage, sendFinishMessage, sendMessage, sendProgressMessage, sendRetryMessage, sendStartMessage, sendSuccessMessage, setCharset, setRequestHeaders, setRequestURI, setTag, setUsePoolThread, setUseSynchronousModepublic RangeFileAsyncHttpResponseHandler(java.io.File file)
file - File to store response within, must not be nullpublic void sendResponseMessage(cz.msebera.android.httpclient.HttpResponse response)
throws java.io.IOException
ResponseHandlerInterfacesendResponseMessage in interface ResponseHandlerInterfacesendResponseMessage in class AsyncHttpResponseHandlerresponse - HttpResponse object with datajava.io.IOException - if retrieving data from response failsprotected byte[] getResponseData(cz.msebera.android.httpclient.HttpEntity entity)
throws java.io.IOException
AsyncHttpResponseHandlergetResponseData in class FileAsyncHttpResponseHandlerentity - can be nulljava.io.IOException - if reading entity or creating byte array failedpublic void updateRequestHeaders(cz.msebera.android.httpclient.client.methods.HttpUriRequest uriRequest)