Class AbstractConnectable<A,​B extends AbstractConnectable<A,​B>>

    • Field Detail

      • apiClass

        protected final java.lang.Class<A> apiClass
      • api

        protected A api
    • Constructor Detail

      • AbstractConnectable

        protected AbstractConnectable​(java.lang.Class<A> apiClass)
        Minimal constructor to use benefit of injection mechanism.
      • AbstractConnectable

        protected AbstractConnectable​(java.lang.Class<A> apiClass,
                                      NuxeoClient nuxeoClient)
    • Method Detail

      • fetchResponse

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

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

        protected void buildRetrofit()
        Description copied from class: AbstractBase
        Re-build the retrofit context.

        You may want to override this method if you want to do more with the built retrofit, for instance create a new retrofit API.

        Overrides:
        buildRetrofit in class AbstractBase<B extends AbstractConnectable<A,​B>>