Class LobidBaseClient<T>

    • Field Detail

      • 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 Detail

      • LobidBaseClient

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

      • createFullUri

        protected URI createFullUri​(String requestUrl)
      • doGetRequestForObject

        protected T doGetRequestForObject​(String requestUrl)
                                   throws de.digitalcollections.model.api.http.exceptions.HttpException
        Throws:
        de.digitalcollections.model.api.http.exceptions.HttpException
      • doGetRequestForObject

        protected Object doGetRequestForObject​(String requestUrl,
                                               Class<?> targetType)
                                        throws de.digitalcollections.model.api.http.exceptions.HttpException
        Throws:
        de.digitalcollections.model.api.http.exceptions.HttpException
      • doGetRequestForObjectList

        protected List doGetRequestForObjectList​(String requestUrl,
                                                 Class<?> targetType)
                                          throws de.digitalcollections.model.api.http.exceptions.HttpException
        Throws:
        de.digitalcollections.model.api.http.exceptions.HttpException
      • doGetRequestForString

        protected String doGetRequestForString​(String requestUrl)
                                        throws de.digitalcollections.model.api.http.exceptions.HttpException
        Throws:
        de.digitalcollections.model.api.http.exceptions.HttpException