Class LiveImportClientImpl

java.lang.Object
org.dspace.importer.external.liveimportclient.service.LiveImportClientImpl
All Implemented Interfaces:
LiveImportClient

public class LiveImportClientImpl extends Object implements LiveImportClient
Implementation of LiveImportClient.
Author:
Mykhaylo Boychuk (mykhaylo.boychuk at 4science dot com)
  • Field Details

  • Constructor Details

    • LiveImportClientImpl

      public LiveImportClientImpl()
  • Method Details

    • executeHttpGetRequest

      public String executeHttpGetRequest(int timeout, String URL, Map<String,Map<String,String>> params)
      Description copied from interface: LiveImportClient
      Http GET request
      Specified by:
      executeHttpGetRequest in interface LiveImportClient
      Parameters:
      timeout - The connect timeout in milliseconds
      URL - URL
      params - 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: LiveImportClient
      Http POST request
      Specified by:
      executeHttpPostRequest in interface LiveImportClient
      Parameters:
      URL - URL
      params - 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)