public class RestRunner<T> extends Object implements PipeHandler<T>
| Constructor and Description |
|---|
RestRunner(Class<T> klass,
URL baseURL) |
RestRunner(Class<T> klass,
URL baseURL,
PipeConfig config) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDataRoot() |
protected com.google.gson.Gson |
getGSON() |
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) |
public RestRunner(Class<T> klass, URL baseURL, PipeConfig config)
public List<T> onRead(Pipe<T> requestingPipe)
PipeHandleronRead in interface PipeHandler<T>public T onSave(T data)
onSave in interface PipeHandler<T>public List<T> onReadWithFilter(ReadFilter filter, Pipe<T> requestingPipe)
onReadWithFilter in interface PipeHandler<T>public void onRemove(String id)
onRemove in interface PipeHandler<T>public void setAuthenticationModule(AuthenticationModule module)
public String getDataRoot()
protected com.google.gson.Gson getGSON()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.