Package com.google.api.client.googleapis.batch.json (2.1.2)

JSON batch for Google API's.

Classes

JsonBatchCallback<T>

Callback for an individual batch JSON response.

Sample use:


 batch.queue(volumesList.buildHttpRequest(), Volumes.class, GoogleJsonErrorContainer.class,
     new JsonBatchCallback<Volumes>() {
       public void onSuccess(Volumes volumes, HttpHeaders responseHeaders) {
         log("Success");
         printVolumes(volumes.getItems());
       }

       public void onFailure(GoogleJsonError e, HttpHeaders responseHeaders) {
         log(e.getMessage());
       }
     });