Package com.moesif.api
Class MoesifAPIClient
- java.lang.Object
-
- com.moesif.api.MoesifAPIClient
-
public class MoesifAPIClient extends Object
-
-
Constructor Summary
Constructors Constructor Description MoesifAPIClient(String applicationId)Client initialization constructorMoesifAPIClient(String applicationId, String baseUri)Client initialization constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description APIControllergetAPI()Singleton access to API controllerHealthControllergetHealth()Singleton access to Health controllerHttpClientgetSharedHttpClient()Get the shared http client currently being used for API callsvoidsetSharedHttpClient(HttpClient httpClient)Set a shared http client to be used for API calls
-
-
-
Constructor Detail
-
MoesifAPIClient
public MoesifAPIClient(String applicationId)
Client initialization constructor- Parameters:
applicationId- The Application Id for authentication
-
-
Method Detail
-
getAPI
public APIController getAPI()
Singleton access to API controller- Returns:
- Returns the APIController instance
-
getHealth
public HealthController getHealth()
Singleton access to Health controller- Returns:
- Returns the HealthController instance
-
getSharedHttpClient
public HttpClient getSharedHttpClient()
Get the shared http client currently being used for API calls- Returns:
- The http client instance currently being used
-
setSharedHttpClient
public void setSharedHttpClient(HttpClient httpClient)
Set a shared http client to be used for API calls- Parameters:
httpClient- The http client to use
-
-