RequestAsyncTask
Esta classe não está mais disponível na versão mais recente do SDK.
Há uma versão mais recente desta classe disponível. Confira. a versão mais recente.

Defines an AsyncTask suitable for executing a Request in the background. May be subclassed by applications having unique threading model needs.

Estende:<any>
Pacote:facebook
Construtores
RequestAsyncTask(Request)

Constructor. Serialization of the requests will be done in the background, so any serialization- related errors will be returned via the Response.getException() method.

public RequestAsyncTask(Request requests)
ParâmetroDescrição
requestsThe requests to execute
RequestAsyncTask(Collection)

Constructor. Serialization of the requests will be done in the background, so any serialization- related errors will be returned via the Response.getException() method.

public RequestAsyncTask(Collection requests)
ParâmetroDescrição
requestsThe requests to execute
RequestAsyncTask(RequestBatch)

Constructor. Serialization of the requests will be done in the background, so any serialization- related errors will be returned via the Response.getException() method.

public RequestAsyncTask(RequestBatch requests)
ParâmetroDescrição
requestsThe requests to execute
RequestAsyncTask(HttpURLConnection, Request)

Constructor that allows specification of an HTTP connection to use for executing the requests. No validation is done that the contents of the connection actually reflect the serialized requests, so it is the caller's responsibility to ensure that it will correctly generate the desired responses.

public RequestAsyncTask(HttpURLConnection connection, Request requests)
ParâmetroDescrição
connectionThe HTTP connection to use to execute the requests
requestsThe requests to execute
RequestAsyncTask(HttpURLConnection, Collection)

Constructor that allows specification of an HTTP connection to use for executing the requests. No validation is done that the contents of the connection actually reflect the serialized requests, so it is the caller's responsibility to ensure that it will correctly generate the desired responses.

public RequestAsyncTask(HttpURLConnection connection, Collection requests)
ParâmetroDescrição
connectionThe HTTP connection to use to execute the requests
requestsThe requests to execute
RequestAsyncTask(HttpURLConnection, RequestBatch)

Constructor that allows specification of an HTTP connection to use for executing the requests. No validation is done that the contents of the connection actually reflect the serialized requests, so it is the caller's responsibility to ensure that it will correctly generate the desired responses.

public RequestAsyncTask(HttpURLConnection connection, RequestBatch requests)
ParâmetroDescrição
connectionThe HTTP connection to use to execute the requests
requestsThe requests to execute
Métodos de instância
getException()
protected final Exception getException()
getRequests()
protected final RequestBatch getRequests()
toString()
public String toString()
onPreExecute()
protected void onPreExecute()
onPostExecute(List)
protected void onPostExecute(List result)
ParâmetroDescrição
result
doInBackground(Void)
protected List doInBackground(Void params)
ParâmetroDescrição
params