TEntity - the type parameterpublic abstract class OrcFetcher<TEntity> extends OrcExecutable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<TEntity> |
clazz
The Clazz.
|
protected OrcExecutable |
parent
The Parent.
|
protected java.lang.String |
urlComponent
The Url component.
|
| Constructor and Description |
|---|
OrcFetcher(java.lang.String urlComponent,
OrcExecutable parent,
java.lang.Class<TEntity> clazz)
Instantiates a new O data fetcher.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addByteArrayResultCallback(com.google.common.util.concurrent.SettableFuture<byte[]> result,
com.google.common.util.concurrent.ListenableFuture<byte[]> future)
Add byte array result callback.
|
protected DependencyResolver |
getResolver()
Gets resolver.
|
protected com.google.common.util.concurrent.ListenableFuture<java.lang.String> |
readRaw()
Read raw.
|
protected void |
setSelectorUrl(OrcURL url,
java.lang.String urlComponent,
java.lang.String selectedId)
Sets selector url.
|
addCustomHeader, addCustomParameter, as, getHeaders, getParameters, log, oDataExecuteprotected java.lang.Class<TEntity> clazz
protected java.lang.String urlComponent
protected OrcExecutable parent
public OrcFetcher(java.lang.String urlComponent,
OrcExecutable parent,
java.lang.Class<TEntity> clazz)
urlComponent - the url componentparent - the parentclazz - the clazzprotected DependencyResolver getResolver()
OrcExecutablegetResolver in class OrcExecutableprotected com.google.common.util.concurrent.ListenableFuture<java.lang.String> readRaw()
protected void addByteArrayResultCallback(com.google.common.util.concurrent.SettableFuture<byte[]> result,
com.google.common.util.concurrent.ListenableFuture<byte[]> future)
result - the resultfuture - the futureprotected void setSelectorUrl(OrcURL url, java.lang.String urlComponent, java.lang.String selectedId)
url - the urlurlComponent - the url componentselectedId - the selected id