com.android.volley
Class ExecutorDelivery

java.lang.Object
  extended by com.android.volley.ExecutorDelivery
All Implemented Interfaces:
ResponseDelivery

public class ExecutorDelivery
extends Object
implements ResponseDelivery

Delivers responses and errors.


Constructor Summary
ExecutorDelivery(Handler handler)
          Creates a new response delivery interface.
 
Method Summary
 void postError(Request<?> request, VolleyError error)
          Posts an error for the given request.
 void postResponse(Request<?> request, Response<?> response)
          Parses a response from the network or cache and delivers it.
 void postResponse(Request<?> request, Response<?> response, Runnable runnable)
          Parses a response from the network or cache and delivers it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutorDelivery

public ExecutorDelivery(Handler handler)
Creates a new response delivery interface.

Parameters:
handler - Handler to post responses on
Method Detail

postResponse

public void postResponse(Request<?> request,
                         Response<?> response)
Description copied from interface: ResponseDelivery
Parses a response from the network or cache and delivers it.

Specified by:
postResponse in interface ResponseDelivery

postResponse

public void postResponse(Request<?> request,
                         Response<?> response,
                         Runnable runnable)
Description copied from interface: ResponseDelivery
Parses a response from the network or cache and delivers it. The provided Runnable will be executed after delivery.

Specified by:
postResponse in interface ResponseDelivery

postError

public void postError(Request<?> request,
                      VolleyError error)
Description copied from interface: ResponseDelivery
Posts an error for the given request.

Specified by:
postError in interface ResponseDelivery