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
-
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.URIcreateFullUri(java.lang.String requestUrl)protected TdoGetRequestForObject(java.lang.String requestUrl)protected java.lang.ObjectdoGetRequestForObject(java.lang.String requestUrl, java.lang.Class<?> targetType)protected java.util.ListdoGetRequestForObjectList(java.lang.String requestUrl, java.lang.Class<?> targetType)protected java.lang.StringdoGetRequestForString(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
-
-
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
-