public static class NuxeoClient.Builder extends AbstractBase<NuxeoClient.Builder>
NuxeoClient builder.| Modifier and Type | Field and Description |
|---|---|
protected okhttp3.Interceptor |
authenticationMethod |
protected NuxeoResponseCache |
cache |
protected NuxeoConverterFactory |
converterFactory |
headerInterceptors, headerValues, okhttpBuilder, retrofit, retrofitBuilder| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
NuxeoClient.Builder |
authentication(okhttp3.Interceptor authenticationMethod) |
NuxeoClient.Builder |
authentication(String username,
String password) |
NuxeoClient.Builder |
cache(NuxeoResponseCache cache) |
NuxeoClient |
connect()
Builds a
NuxeoClient and log it, it will throw a NuxeoClientException if failed. |
NuxeoClient.Builder |
interceptor(okhttp3.Interceptor interceptor) |
NuxeoClient.Builder |
registerEntity(String entityType,
Class<?> clazz)
Register entity type to class link for automatic unmarshalling process in operation.
|
NuxeoClient.Builder |
url(String url) |
buildRetrofit, connectTimeout, depth, enrichers, enrichers, enrichersForDocument, fetchProperties, fetchProperties, fetchPropertiesForDocument, fetchPropertiesForGroup, header, header, header, header, header, header, header, readTimeout, replaceWith, schemas, schemas, timeout, transactionTimeout, versionprotected final NuxeoConverterFactory converterFactory
protected okhttp3.Interceptor authenticationMethod
protected NuxeoResponseCache cache
public NuxeoClient.Builder url(String url)
public NuxeoClient.Builder authentication(String username, String password)
public NuxeoClient.Builder authentication(okhttp3.Interceptor authenticationMethod)
public NuxeoClient.Builder interceptor(okhttp3.Interceptor interceptor)
public NuxeoClient.Builder cache(NuxeoResponseCache cache)
public NuxeoClient.Builder registerEntity(String entityType, Class<?> clazz)
public NuxeoClient connect()
NuxeoClient and log it, it will throw a NuxeoClientException if failed.Copyright © 2018 Nuxeo. All rights reserved.