Class LobidBaseClient<T>
java.lang.Object
de.digitalcollections.cudami.lobid.client.LobidBaseClient<T>
- Direct Known Subclasses:
LobidCorporateBodiesClient,LobidEventsClient,LobidGeoLocationsClient,LobidHumanSettlementsClient,LobidPersonsClient,LobidSubjectsClient,LobidWorksClient
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final HttpClientprotected final com.fasterxml.jackson.databind.ObjectMapperprotected final com.fasterxml.jackson.databind.ObjectReaderprotected final URI -
Constructor Summary
ConstructorsConstructorDescriptionLobidBaseClient(HttpClient http, String serverUrl, Class<T> targetType, com.fasterxml.jackson.databind.ObjectMapper mapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected URIcreateFullUri(String requestUrl) protected TdoGetRequestForObject(String requestUrl) protected ObjectdoGetRequestForObject(String requestUrl, Class<?> targetType) protected ListdoGetRequestForObjectList(String requestUrl, Class<?> targetType) protected StringdoGetRequestForString(String requestUrl)
-
Field Details
-
http
-
mapper
protected final com.fasterxml.jackson.databind.ObjectMapper mapper -
reader
protected final com.fasterxml.jackson.databind.ObjectReader reader -
serverUri
-
targetType
-
-
Constructor Details
-
LobidBaseClient
public LobidBaseClient(HttpClient http, String serverUrl, Class<T> targetType, com.fasterxml.jackson.databind.ObjectMapper mapper)
-
-
Method Details
-
createFullUri
-
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
-