AeroGear Android Library 1.1.0

org.jboss.aerogear.android.impl.pipeline
Class RestRunner<T>

java.lang.Object
  extended by org.jboss.aerogear.android.impl.pipeline.RestRunner<T>
All Implemented Interfaces:
PipeHandler<T>

public class RestRunner<T>
extends Object
implements PipeHandler<T>


Constructor Summary
RestRunner(Class<T> klass, URL baseURL)
           
RestRunner(Class<T> klass, URL baseURL, PipeConfig config)
           
 
Method Summary
 String getDataRoot()
           
protected  RequestBuilder<T> getRequestBuilder()
           
 List<T> onRead(Pipe<T> requestingPipe)
          This method is called after a call to read.
 List<T> onReadWithFilter(ReadFilter filter, Pipe<T> requestingPipe)
           
 void onRemove(String id)
           
 T onSave(T data)
           
 void setAuthenticationModule(AuthenticationModule module)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestRunner

public RestRunner(Class<T> klass,
                  URL baseURL)

RestRunner

public RestRunner(Class<T> klass,
                  URL baseURL,
                  PipeConfig config)
Method Detail

onRead

public List<T> onRead(Pipe<T> requestingPipe)
Description copied from interface: PipeHandler
This method is called after a call to read. It performs the actual load of data and returns.

Specified by:
onRead in interface PipeHandler<T>
Returns:
a List of data.

onSave

public T onSave(T data)
Specified by:
onSave in interface PipeHandler<T>

onReadWithFilter

public List<T> onReadWithFilter(ReadFilter filter,
                                Pipe<T> requestingPipe)
Specified by:
onReadWithFilter in interface PipeHandler<T>

onRemove

public void onRemove(String id)
Specified by:
onRemove in interface PipeHandler<T>

setAuthenticationModule

public void setAuthenticationModule(AuthenticationModule module)

getDataRoot

public String getDataRoot()

getRequestBuilder

protected RequestBuilder<T> getRequestBuilder()

AeroGear Android Library 1.1.0

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.