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 defaultGoodDataRestProvider
used internally byGoodData
. 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
-
-
Field Summary
-
Fields inherited from class com.gooddata.sdk.service.httpcomponents.SingleEndpointGoodDataRestProvider
endpoint, httpClient, restTemplate, settings
-
-
Constructor Summary
Constructors Constructor Description LoginPasswordGoodDataRestProvider(GoodDataEndpoint endpoint, GoodDataSettings settings, java.lang.String login, java.lang.String password)
Creates new instance.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.http.client.HttpClient
createHttpClient(org.apache.http.impl.client.HttpClientBuilder builder, GoodDataEndpoint endpoint, java.lang.String login, java.lang.String password)
Creates http client using given builder and endpoint, authenticating by login and password.-
Methods inherited from class com.gooddata.sdk.service.httpcomponents.SingleEndpointGoodDataRestProvider
createHttpClientBuilder, createRestTemplate, getDataStoreService, getEndpoint, getHttpClient, getRestTemplate, getSettings
-
-
-
-
Constructor Detail
-
LoginPasswordGoodDataRestProvider
public LoginPasswordGoodDataRestProvider(GoodDataEndpoint endpoint, GoodDataSettings settings, java.lang.String login, java.lang.String password)
Creates new instance.- Parameters:
endpoint
- endpoint of GoodData APIsettings
- settingslogin
- API user loginpassword
- API user password
-
-
Method Detail
-
createHttpClient
public static org.apache.http.client.HttpClient createHttpClient(org.apache.http.impl.client.HttpClientBuilder builder, GoodDataEndpoint endpoint, java.lang.String login, java.lang.String password)
Creates http client using given builder and endpoint, authenticating by login and password.- Parameters:
builder
- builder to build client fromendpoint
- API endpoint to connect client tologin
- loginpassword
- password- Returns:
- configured http client
-
-