B - The type of object extending this one.public class AbstractBase<B extends AbstractBase<B>> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,okhttp3.Interceptor> |
headerInterceptors |
protected Map<String,List<String>> |
headerValues |
protected okhttp3.OkHttpClient.Builder |
okhttpBuilder |
protected retrofit2.Retrofit |
retrofit |
protected retrofit2.Retrofit.Builder |
retrofitBuilder |
| Modifier | Constructor and Description |
|---|---|
|
AbstractBase() |
protected |
AbstractBase(AbstractBase<?> base) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildRetrofit()
Re-build the retrofit context.
|
B |
connectTimeout(long connectTimeout)
The timeout unit is seconds.
|
B |
depth(String value)
Sets the depth.
|
B |
enrichers(boolean append,
String type,
String enricher,
String... enrichers) |
B |
enrichers(String type,
String enricher,
String... enrichers)
Replaces the current enrichers associate to the input type by the input one.
|
B |
enrichersForDocument(String enricher,
String... enrichers)
Replaces the current enrichers associate to document type by the input one.
|
B |
fetchProperties(boolean append,
String fetch,
String fetchProperty,
String... fetchProperties) |
B |
fetchProperties(String type,
String fetchProperty,
String... fetchProperties)
Replaces the current fetch properties associate to the input type by the input one.
|
B |
fetchPropertiesForDocument(String fetchProperty,
String... fetchProperties)
Replaces the current fetch properties associate to document type by the input one.
|
B |
fetchPropertiesForGroup(String fetchProperty,
String... fetchProperties)
Replaces the current fetch properties associate to group type by the input one.
|
B |
header(boolean append,
String header,
int value,
int... values)
Replaces or appends the header value with the input one separated by ','.
|
B |
header(boolean append,
String header,
Serializable value,
Serializable... values)
Replaces or appends the header value with the input one separated by ','.
|
B |
header(boolean append,
String header,
String value,
String... values)
Replaces or appends the input header value with the input one separated by ','.
|
B |
header(String header,
boolean value)
Replaces the header value with input one.
|
B |
header(String header,
int value,
int... values)
Replaces the header value with the input one separated by ','.
|
B |
header(String header,
Serializable value,
Serializable... values)
Replaces the header value with the input one separated by ','.
|
B |
header(String header,
String value,
String... values)
Replaces the header value with the input one separated by ','.
|
B |
readTimeout(long readTimeout)
The timeout unit is seconds.
|
protected void |
replaceWith(AbstractBase<?> base)
Replaces the input
AbstractBase into this one. |
B |
schemas(boolean append,
String property,
String... properties) |
B |
schemas(String property,
String... properties)
Replaces the current schemas by the input one.
|
B |
timeout(long timeout)
Sets the given timeout to connect and read timeout settings of client.
|
B |
transactionTimeout(long timeout) |
B |
version(String value) |
protected okhttp3.OkHttpClient.Builder okhttpBuilder
protected retrofit2.Retrofit.Builder retrofitBuilder
protected retrofit2.Retrofit retrofit
public AbstractBase()
protected AbstractBase(AbstractBase<?> base)
public B timeout(long timeout)
public B connectTimeout(long connectTimeout)
public B readTimeout(long readTimeout)
public B header(String header, boolean value)
public B header(String header, int value, int... values)
public B header(boolean append, String header, int value, int... values)
public B header(String header, Serializable value, Serializable... values)
public B header(boolean append, String header, Serializable value, Serializable... values)
public B header(String header, String value, String... values)
public B header(boolean append, String header, String value, String... values)
public B transactionTimeout(long timeout)
public B enrichers(String type, String enricher, String... enrichers)
public B enrichersForDocument(String enricher, String... enrichers)
public B fetchProperties(boolean append, String fetch, String fetchProperty, String... fetchProperties)
public B fetchProperties(String type, String fetchProperty, String... fetchProperties)
public B fetchPropertiesForDocument(String fetchProperty, String... fetchProperties)
public B fetchPropertiesForGroup(String fetchProperty, String... fetchProperties)
public B depth(String value)
org.nuxeo.ecm.core.io.registry.context.DepthValuespublic B schemas(String property, String... properties)
protected void buildRetrofit()
protected final void replaceWith(AbstractBase<?> base)
AbstractBase into this one. This method will create a new retrofit object in order to
correctly isolate this configuration.
DON'T REMOVE FINAL KEYWORD, THIS METHOD IS USED IN A CONSTRUCTOR.base - the base to replaceCopyright © 2018 Nuxeo. All rights reserved.