Class FineractClient.Builder

java.lang.Object
org.apache.fineract.client.util.FineractClient.Builder
Enclosing class:
FineractClient

public static final class FineractClient.Builder extends Object
  • Method Details

    • baseURL

      public FineractClient.Builder baseURL(String baseURL)
    • tenant

      public FineractClient.Builder tenant(String tenant)
    • basicAuth

      public FineractClient.Builder basicAuth(String username, String password)
    • logging

      public FineractClient.Builder logging(okhttp3.logging.HttpLoggingInterceptor.Level level)
    • readTimeout

      public FineractClient.Builder readTimeout(Duration timeout)
    • insecure

      public FineractClient.Builder insecure(boolean insecure)
      Skip Fineract API host SSL certificate verification. DO NOT USE THIS when invoking a production server's API! This is intended for https://localhost:8443/ testing of development servers with self-signed certificates, only. If you do not understand what this is, do not use it. You WILL cause a security issue in your application due to the possibility of a "man in the middle" attack when this is enabled.
    • build

      public FineractClient build()
    • getRetrofitBuilder

      public retrofit2.Retrofit.Builder getRetrofitBuilder()
      Obtain the internal Retrofit Builder. This method is typically not required to be invoked for simple API usages, but can be a handy back door for non-trivial advanced customizations of the API client.
    • getOkBuilder

      public okhttp3.OkHttpClient.Builder getOkBuilder()
      Obtain the internal OkHttp Builder. This method is typically not required to be invoked for simple API usages, but can be a handy back door for non-trivial advanced customizations of the API client.