Class NuxeoClient

    • Field Detail

      • CMIS_PRODUCT_VERSION_PATTERN

        public static final java.util.regex.Pattern CMIS_PRODUCT_VERSION_PATTERN
      • currentUser

        protected User currentUser
    • Method Detail

      • addOkHttpInterceptor

        protected void addOkHttpInterceptor​(okhttp3.Interceptor interceptor)
        Used by unit tests.
      • computeUserAgent

        protected java.lang.String computeUserAgent()
      • isCacheEnabled

        public boolean isCacheEnabled()
      • disconnect

        public void disconnect()
      • getCurrentUser

        public User getCurrentUser()
        This method returns the current logged user retrieved on NuxeoClient creation.
        Returns:
        the current logged user.
      • getServerVersion

        public NuxeoVersion getServerVersion()
        This method gets the Nuxeo server version from CMIS the first time and then caches it.
        Returns:
        The Nuxeo server version.
      • repository

        public Repository repository()
        Returns:
        A repository service linked to `default` repository in Nuxeo.
      • repository

        public Repository repository​(java.lang.String repositoryName)
      • operation

        public Operation operation​(java.lang.String operationId)
      • get

        public okhttp3.Response get​(java.lang.String url)
        HTTP Services *
      • delete

        public okhttp3.Response delete​(java.lang.String url)
      • delete

        public okhttp3.Response delete​(java.lang.String url,
                                       java.lang.String json)
      • put

        public okhttp3.Response put​(java.lang.String url,
                                    java.lang.String json)
      • post

        public okhttp3.Response post​(java.lang.String url,
                                     java.lang.String json)
      • request

        protected okhttp3.Response request​(java.lang.String url,
                                           java.util.function.UnaryOperator<okhttp3.Request.Builder> method)
      • fetchResponse

        public <T> T fetchResponse​(retrofit2.Call<T> call)
      • fetchResponse

        public <T> void fetchResponse​(retrofit2.Call<T> call,
                                      retrofit2.Callback<T> callback)
      • handleResponse

        protected <T> retrofit2.Response<T> handleResponse​(retrofit2.Call<T> call,
                                                           retrofit2.Response<T> response)
      • decodeFilename

        protected java.lang.String decodeFilename​(java.lang.String contentDisposition)
      • useCache

        protected boolean useCache​(retrofit2.Call<?> call)
      • computeCacheKey

        protected java.lang.String computeCacheKey​(retrofit2.Call<?> call)
        Compute the cache key with request