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 RequestBuilder<T> |
getRequestBuilder() |
HeaderAndBody |
onRawRead(Pipe<T> requestingPipe) |
HeaderAndBody |
onRawReadWithFilter(ReadFilter filter,
Pipe<T> requestingPipe) |
HeaderAndBody |
onRawSave(String id,
byte[] item) |
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>requestingPipe - the Pipe which is calling the this handler.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 RequestBuilder<T> getRequestBuilder()
public HeaderAndBody onRawRead(Pipe<T> requestingPipe)
onRawRead in interface PipeHandler<T>public HeaderAndBody onRawReadWithFilter(ReadFilter filter, Pipe<T> requestingPipe)
onRawReadWithFilter in interface PipeHandler<T>public HeaderAndBody onRawSave(String id, byte[] item)
onRawSave in interface PipeHandler<T>Copyright © 2014 JBoss by Red Hat. All rights reserved.