Class LoginPasswordGoodDataRestProvider
java.lang.Object
com.gooddata.sdk.service.httpcomponents.SingleEndpointGoodDataRestProvider
com.gooddata.sdk.service.httpcomponents.LoginPasswordGoodDataRestProvider
- All Implemented Interfaces:
GoodDataRestProvider
The default
GoodDataRestProvider used internally by GoodData.
Provides configured single endpoint REST connection using standard GoodData login and password authentication.
See ...
-
Field Summary
Fields inherited from class com.gooddata.sdk.service.httpcomponents.SingleEndpointGoodDataRestProvider
endpoint, httpClient, restTemplate, settings -
Constructor Summary
ConstructorsConstructorDescriptionLoginPasswordGoodDataRestProvider(GoodDataEndpoint endpoint, GoodDataSettings settings, String login, String password) Creates new instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.hc.client5.http.classic.HttpClientcreateHttpClient(org.apache.hc.client5.http.impl.classic.HttpClientBuilder builder, GoodDataEndpoint endpoint, String login, 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 Details
-
LoginPasswordGoodDataRestProvider
public LoginPasswordGoodDataRestProvider(GoodDataEndpoint endpoint, GoodDataSettings settings, String login, String password) Creates new instance.- Parameters:
endpoint- endpoint of GoodData APIsettings- settingslogin- API user loginpassword- API user password
-
-
Method Details
-
createHttpClient
public static org.apache.hc.client5.http.classic.HttpClient createHttpClient(org.apache.hc.client5.http.impl.classic.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 fromendpoint- API endpoint to connect client tologin- loginpassword- password- Returns:
- configured http client
-