Class LiveImportClientImpl
java.lang.Object
org.dspace.importer.external.liveimportclient.service.LiveImportClientImpl
- All Implemented Interfaces:
LiveImportClient
Implementation of
LiveImportClient.- Author:
- Mykhaylo Boychuk (mykhaylo.boychuk at 4science dot com)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionHttp GET requestHttp POST requestorg.apache.http.impl.client.CloseableHttpClientvoidsetHttpClient(org.apache.http.impl.client.CloseableHttpClient httpClient)
-
Field Details
-
URI_PARAMETERS
- See Also:
-
HEADER_PARAMETERS
- See Also:
-
-
Constructor Details
-
LiveImportClientImpl
public LiveImportClientImpl()
-
-
Method Details
-
executeHttpGetRequest
Description copied from interface:LiveImportClientHttp GET request- Specified by:
executeHttpGetRequestin interfaceLiveImportClient- Parameters:
timeout- The connect timeout in millisecondsURL- URLparams- This map contains the parameters to be included in the request. Each parameter will be added to the url?(key=value)- Returns:
- The response in String type converted from InputStream
-
executeHttpPostRequest
public String executeHttpPostRequest(String URL, Map<String, Map<String, String>> params, String entry) Description copied from interface:LiveImportClientHttp POST request- Specified by:
executeHttpPostRequestin interfaceLiveImportClient- Parameters:
URL- URLparams- This map contains the header params to be included in the request.entry- the entity value- Returns:
- the response in String type converted from InputStream
-
getHttpClient
public org.apache.http.impl.client.CloseableHttpClient getHttpClient() -
setHttpClient
public void setHttpClient(org.apache.http.impl.client.CloseableHttpClient httpClient)
-