Class LobidBaseClient<T>

java.lang.Object
de.digitalcollections.cudami.lobid.client.LobidBaseClient<T>
Direct Known Subclasses:
LobidCorporateBodiesClient, LobidEventsClient, LobidGeoLocationsClient, LobidHumanSettlementsClient, LobidPersonsClient, LobidSubjectsClient, LobidWorksClient

public class LobidBaseClient<T> extends Object
  • Field Details

    • http

      protected final HttpClient http
    • mapper

      protected final com.fasterxml.jackson.databind.ObjectMapper mapper
    • reader

      protected final com.fasterxml.jackson.databind.ObjectReader reader
    • serverUri

      protected final URI serverUri
    • targetType

      protected final Class<T> targetType
  • Constructor Details

    • LobidBaseClient

      public LobidBaseClient(HttpClient http, String serverUrl, Class<T> targetType, com.fasterxml.jackson.databind.ObjectMapper mapper)
  • Method Details

    • createFullUri

      protected URI createFullUri(String requestUrl)
    • doGetRequestForObject

      protected T doGetRequestForObject(String requestUrl) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • doGetRequestForObject

      protected Object doGetRequestForObject(String requestUrl, Class<?> targetType) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • doGetRequestForObjectList

      protected List doGetRequestForObjectList(String requestUrl, Class<?> targetType) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • doGetRequestForString

      protected String doGetRequestForString(String requestUrl) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException