public class IndixApiClientFactory extends Object
| Constructor and Description |
|---|
IndixApiClientFactory() |
| Modifier and Type | Method and Description |
|---|---|
static IndixApiClient |
newIndixApiClient(String appKey) |
static IndixApiClient |
newIndixApiClient(String appKey,
HttpClient httpClient)
Used for mocking http client for testing purpose.
|
static IndixApiClient |
newIndixApiClient(String appId,
String appKey,
String scheme,
String host)
Used for setting server scheme and host for testing purpose.
|
public static IndixApiClient newIndixApiClient(String appKey)
appKey - application keyIndixApiClientpublic static IndixApiClient newIndixApiClient(String appKey, HttpClient httpClient)
appKey - application keyhttpClient - mock http clientIndixApiClientpublic static IndixApiClient newIndixApiClient(String appId, String appKey, String scheme, String host)
appId - application idappKey - application keyscheme - http schemehost - api host to be queriedIndixApiClientCopyright © 2017. All rights reserved.