Class LoginPasswordGoodDataRestProvider

java.lang.Object
com.gooddata.sdk.service.httpcomponents.SingleEndpointGoodDataRestProvider
com.gooddata.sdk.service.httpcomponents.LoginPasswordGoodDataRestProvider
All Implemented Interfaces:
GoodDataRestProvider

public final class LoginPasswordGoodDataRestProvider extends SingleEndpointGoodDataRestProvider
The default GoodDataRestProvider used internally by GoodData. Provides configured single endpoint REST connection using standard GoodData login and password authentication. See https://help.gooddata.com/display/API/API+Reference#/reference/authentication/log-in
  • Constructor Details

    • LoginPasswordGoodDataRestProvider

      public LoginPasswordGoodDataRestProvider(GoodDataEndpoint endpoint, GoodDataSettings settings, String login, String password)
      Creates new instance.
      Parameters:
      endpoint - endpoint of GoodData API
      settings - settings
      login - API user login
      password - API user password
  • Method Details

    • createHttpClient

      public static org.apache.http.client.HttpClient createHttpClient(org.apache.http.impl.client.HttpClientBuilder builder, GoodDataEndpoint endpoint, String login, String password)
      Creates http client using given builder and endpoint, authenticating by login and password.
      Parameters:
      builder - builder to build client from
      endpoint - API endpoint to connect client to
      login - login
      password - password
      Returns:
      configured http client