public interface PipeHandler<T>
Modifier and Type | Method and Description |
---|---|
HeaderAndBody |
onRawRead(Pipe<T> requestingPipe)
This method fetches a resource on behalf of a Pipe.
|
HeaderAndBody |
onRawRead(Pipe<T> requestingPipe,
String id)
This method fetches a resource with an id on behalf of a Pipe.
|
HeaderAndBody |
onRawReadWithFilter(org.jboss.aerogear.android.core.ReadFilter filter,
Pipe<T> requestingPipe)
This method fetches a resource with an filter on behalf of a Pipe.
|
HeaderAndBody |
onRawSave(String id,
byte[] item)
This method will save data for a Pipe.
|
void |
onRemove(String id)
This method removes a resource with the id.
|
HeaderAndBody onRawRead(Pipe<T> requestingPipe, String id)
requestingPipe
- the Pipe the handler is acting on behalf of.id
- the id of the remote resourceHeaderAndBody onRawRead(Pipe<T> requestingPipe)
requestingPipe
- the Pipe the handler is acting on behalf of.HeaderAndBody onRawReadWithFilter(org.jboss.aerogear.android.core.ReadFilter filter, Pipe<T> requestingPipe)
filter
- an object with various filter parameters to use during the
request.requestingPipe
- the Pipe the handler is acting on behalf of.HeaderAndBody onRawSave(String id, byte[] item)
id
- The id of the object to save. May be empty or null.item
- data to save. This must not be null.void onRemove(String id)
id
- the id of the resource to remove. Must not be null or empty.Copyright © 2016 JBoss by Red Hat. All rights reserved.