| Class | Description |
|---|---|
| JsonModelResponse<T> |
Convinience callback class which can be used together with
PiritiJsonRepresentation:
ClientResource clientResource = new ClientResource("/resource/with/json/representation");
clientResource.setOnResponse(new JsonModelResponse<Book>(Book.JSON)
{
@Override
public void onSuccess(Book book, Request request, Response response)
{
...
}
@Override
public void onError(IOException error, Request request, Response response)
{
...
}
});
|
| JsonModelsResponse<T> |
Convinience callback class which can be used together with
PiritiJsonRepresentation:
ClientResource clientResource = new ClientResource("/resource/with/json/representation");
clientResource.setOnResponse(new JsonModelsResponse<Book>(Book.JSON)
{
@Override
public void onSuccess(List<Book> books, Request request, Response response)
{
...
}
@Override
public void onError(IOException error, Request request, Response response)
{
...
}
});
|
| PiritiJsonRepresentation<T> |
Representation which uses an
JsonReader for converting JSON to an
instance of T. |
Copyright © 2012 Harald Pehl. All Rights Reserved.