Class LobidBaseClient<T>
- java.lang.Object
-
- de.digitalcollections.cudami.lobid.client.LobidBaseClient<T>
-
- Direct Known Subclasses:
LobidCorporateBodiesClient
public class LobidBaseClient<T> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected HttpClienthttpprotected com.fasterxml.jackson.databind.ObjectMappermapperprotected com.fasterxml.jackson.databind.ObjectReaderreaderprotected URIserverUriprotected Class<T>targetType
-
Constructor Summary
Constructors Constructor Description LobidBaseClient(HttpClient http, String serverUrl, Class<T> targetType, com.fasterxml.jackson.databind.ObjectMapper mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected URIcreateFullUri(String requestUrl)protected TdoGetRequestForObject(String requestUrl)protected ObjectdoGetRequestForObject(String requestUrl, Class<?> targetType)protected ListdoGetRequestForObjectList(String requestUrl, Class<?> targetType)protected StringdoGetRequestForString(String requestUrl)
-
-
-
Field Detail
-
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
-
-
Constructor Detail
-
LobidBaseClient
public LobidBaseClient(HttpClient http, String serverUrl, Class<T> targetType, com.fasterxml.jackson.databind.ObjectMapper mapper)
-
-
Method Detail
-
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
-
-