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