public class NuxeoClient extends AbstractBase<NuxeoClient>
| Modifier and Type | Class and Description |
|---|---|
static class |
NuxeoClient.Builder
NuxeoClient builder. |
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
CMIS_PRODUCT_VERSION_PATTERN |
protected NuxeoConverterFactory |
converterFactory |
protected User |
currentUser |
protected NuxeoResponseCache |
nuxeoCache |
protected NuxeoVersion |
serverVersion |
headerInterceptors, headerValues, okhttpBuilder, retrofit, retrofitBuilder| Modifier | Constructor and Description |
|---|---|
protected |
NuxeoClient(NuxeoClient.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addOkHttpInterceptor(okhttp3.Interceptor interceptor)
Used by unit tests.
|
BatchUploadManager |
batchUploadManager() |
protected String |
computeCacheKey(retrofit2.Call<?> call)
Compute the cache key with request
|
protected String |
computeUserAgent() |
ConfigManager |
configManager() |
protected String |
decodeFilename(String contentDisposition) |
okhttp3.Response |
delete(String url) |
okhttp3.Response |
delete(String url,
String json) |
DirectoryManager |
directoryManager() |
void |
disconnect() |
<T> T |
fetchResponse(retrofit2.Call<T> call) |
<T> void |
fetchResponse(retrofit2.Call<T> call,
retrofit2.Callback<T> callback) |
okhttp3.Response |
get(String url)
HTTP Services *
|
NuxeoConverterFactory |
getConverterFactory()
Client Services *
|
User |
getCurrentUser()
This method returns the current logged user retrieved on
NuxeoClient creation. |
NuxeoResponseCache |
getNuxeoCache() |
NuxeoVersion |
getServerVersion()
This method gets the Nuxeo server version from CMIS the first time and then caches it.
|
protected <T> retrofit2.Response<T> |
handleResponse(retrofit2.Call<T> call,
retrofit2.Response<T> response) |
boolean |
isCacheEnabled() |
Operation |
operation(String operationId) |
okhttp3.Response |
post(String url,
String json) |
okhttp3.Response |
put(String url,
String json) |
NuxeoClient |
refreshCache() |
Repository |
repository() |
Repository |
repository(String repositoryName) |
protected okhttp3.Response |
request(String url,
UnaryOperator<okhttp3.Request.Builder> method) |
TaskManager |
taskManager() |
protected boolean |
useCache(retrofit2.Call<?> call) |
UserManager |
userManager() |
buildRetrofit, connectTimeout, depth, enrichers, enrichers, enrichersForDocument, fetchProperties, fetchProperties, fetchPropertiesForDocument, fetchPropertiesForGroup, header, header, header, header, header, header, header, readTimeout, replaceWith, schemas, schemas, timeout, transactionTimeout, versionpublic static final Pattern CMIS_PRODUCT_VERSION_PATTERN
protected final NuxeoConverterFactory converterFactory
protected NuxeoResponseCache nuxeoCache
protected User currentUser
protected NuxeoVersion serverVersion
protected NuxeoClient(NuxeoClient.Builder builder)
protected void addOkHttpInterceptor(okhttp3.Interceptor interceptor)
protected String computeUserAgent()
public NuxeoConverterFactory getConverterFactory()
public NuxeoResponseCache getNuxeoCache()
public boolean isCacheEnabled()
public NuxeoClient refreshCache()
public void disconnect()
public User getCurrentUser()
NuxeoClient creation.public NuxeoVersion getServerVersion()
public Repository repository()
public Repository repository(String repositoryName)
public UserManager userManager()
public DirectoryManager directoryManager()
public TaskManager taskManager()
public BatchUploadManager batchUploadManager()
public ConfigManager configManager()
public okhttp3.Response get(String url)
public okhttp3.Response delete(String url)
protected okhttp3.Response request(String url, UnaryOperator<okhttp3.Request.Builder> method)
public <T> T fetchResponse(retrofit2.Call<T> call)
public <T> void fetchResponse(retrofit2.Call<T> call,
retrofit2.Callback<T> callback)
protected <T> retrofit2.Response<T> handleResponse(retrofit2.Call<T> call,
retrofit2.Response<T> response)
protected boolean useCache(retrofit2.Call<?> call)
protected String computeCacheKey(retrofit2.Call<?> call)
Copyright © 2018 Nuxeo. All rights reserved.