org.jboss.aerogear.android.impl.pipeline
Class RestRunner<T>
java.lang.Object
org.jboss.aerogear.android.impl.pipeline.RestRunner<T>
- All Implemented Interfaces:
- PipeHandler<T>
public class RestRunner<T>
- extends Object
- implements PipeHandler<T>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RestRunner
public RestRunner(Class<T> klass,
URL baseURL)
RestRunner
public RestRunner(Class<T> klass,
URL baseURL,
PipeConfig config)
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()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.