Class RestAPI
java.lang.Object
fr.multimc.api.commons.data.sources.rest.RestAPI
- All Implemented Interfaces:
IDataSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
login()
org.apache.http.HttpResponse
sendGetRequest
(String urlPath, boolean authenticated) org.apache.http.HttpResponse
sendPostRequest
(String urlPath, String jsonContent, boolean authenticated)
-
Constructor Details
-
RestAPI
-
-
Method Details
-
login
public boolean login() -
sendGetRequest
public org.apache.http.HttpResponse sendGetRequest(String urlPath, boolean authenticated) throws IOException - Throws:
IOException
-
sendPostRequest
public org.apache.http.HttpResponse sendPostRequest(String urlPath, String jsonContent, boolean authenticated) throws IOException - Throws:
IOException
-
getDataSourceType
- Specified by:
getDataSourceType
in interfaceIDataSource
-
getLogger
-