Class LobidBaseClient<T>

java.lang.Object
de.digitalcollections.cudami.lobid.client.LobidBaseClient<T>
Direct Known Subclasses:
LobidCorporateBodiesClient

public class LobidBaseClient<T>
extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected java.net.http.HttpClient http  
    protected com.fasterxml.jackson.databind.ObjectMapper mapper  
    protected com.fasterxml.jackson.databind.ObjectReader reader  
    protected java.net.URI serverUri  
    protected java.lang.Class<T> targetType  
  • Constructor Summary

    Constructors
    Constructor Description
    LobidBaseClient​(java.net.http.HttpClient http, java.lang.String serverUrl, java.lang.Class<T> targetType, com.fasterxml.jackson.databind.ObjectMapper mapper)  
  • Method Summary

    Modifier and Type Method Description
    protected java.net.URI createFullUri​(java.lang.String requestUrl)  
    protected T doGetRequestForObject​(java.lang.String requestUrl)  
    protected java.lang.Object doGetRequestForObject​(java.lang.String requestUrl, java.lang.Class<?> targetType)  
    protected java.util.List doGetRequestForObjectList​(java.lang.String requestUrl, java.lang.Class<?> targetType)  
    protected java.lang.String doGetRequestForString​(java.lang.String requestUrl)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • http

      protected final java.net.http.HttpClient http
    • mapper

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

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

      protected final java.net.URI serverUri
    • targetType

      protected final java.lang.Class<T> targetType
  • Constructor Details

    • LobidBaseClient

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

    • createFullUri

      protected java.net.URI createFullUri​(java.lang.String requestUrl)
    • doGetRequestForObject

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

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

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

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