org.solovyev.android.http
Class DownloadFileAsyncTask

java.lang.Object
  extended by android.os.AsyncTask<PARAM,PROGRESS,CommonAsyncTask.Result<RESULT>>
      extended by org.solovyev.android.async.CommonAsyncTask<DownloadFileAsyncTask.Input,Integer,List<Object>>
          extended by org.solovyev.android.http.DownloadFileAsyncTask

public class DownloadFileAsyncTask
extends CommonAsyncTask<DownloadFileAsyncTask.Input,Integer,List<Object>>

User: serso Date: 5/29/12 Time: 9:50 PM


Nested Class Summary
static class DownloadFileAsyncTask.Input
           
static interface DownloadFileAsyncTask.OnPostExecute<R>
           
 
Nested classes/interfaces inherited from class org.solovyev.android.async.CommonAsyncTask
CommonAsyncTask.Result<SR>
 
Nested classes/interfaces inherited from class android.os.AsyncTask
android.os.AsyncTask.Status
 
Field Summary
 
Fields inherited from class android.os.AsyncTask
SERIAL_EXECUTOR, THREAD_POOL_EXECUTOR
 
Constructor Summary
DownloadFileAsyncTask(android.content.Context context)
           
DownloadFileAsyncTask(android.content.Context context, DownloadFileAsyncTask.OnPostExecute<List<Object>> onPostExecute)
           
 
Method Summary
protected  List<Object> doWork(List<DownloadFileAsyncTask.Input> params)
           
protected  void onFailurePostExecute(Exception e)
           
protected  void onSuccessPostExecute(List<Object> result)
           
 
Methods inherited from class org.solovyev.android.async.CommonAsyncTask
defaultOnFailurePostExecute, doInBackground, getContext, onPostExecute, onPreExecute, throwException
 
Methods inherited from class android.os.AsyncTask
cancel, execute, execute, executeOnExecutor, get, get, getStatus, isCancelled, onCancelled, onCancelled, onProgressUpdate, publishProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownloadFileAsyncTask

public DownloadFileAsyncTask(@Nonnull
                             android.content.Context context)

DownloadFileAsyncTask

public DownloadFileAsyncTask(@Nonnull
                             android.content.Context context,
                             @Nonnull
                             DownloadFileAsyncTask.OnPostExecute<List<Object>> onPostExecute)
Method Detail

doWork

@Nonnull
protected List<Object> doWork(@Nonnull
                                      List<DownloadFileAsyncTask.Input> params)
Specified by:
doWork in class CommonAsyncTask<DownloadFileAsyncTask.Input,Integer,List<Object>>

onSuccessPostExecute

protected void onSuccessPostExecute(@Nullable
                                    List<Object> result)
Specified by:
onSuccessPostExecute in class CommonAsyncTask<DownloadFileAsyncTask.Input,Integer,List<Object>>

onFailurePostExecute

protected void onFailurePostExecute(@Nonnull
                                    Exception e)
Specified by:
onFailurePostExecute in class CommonAsyncTask<DownloadFileAsyncTask.Input,Integer,List<Object>>


Copyright © 2013. All Rights Reserved.