Package io.lionweb.repoclient.impl
Class ClientForHistoryAPIs
java.lang.Object
io.lionweb.repoclient.impl.ClientForHistoryAPIs
- All Implemented Interfaces:
HistoryAPIClient
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final RepoClientConfiguration
protected final com.google.gson.Gson
protected static final okhttp3.MediaType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected okhttp3.Request.Builder
addGZipCompressionHeader
(okhttp3.Request.Builder builder) protected okhttp3.Request.Builder
buildRequest
(String api) protected okhttp3.Request.Builder
buildRequest
(String api, boolean specifyingClientID, boolean specifyingRepository, boolean considerAuthenticationToken, Map<String, String> additionalParams) protected okhttp3.HttpUrl.Builder
protected okhttp3.HttpUrl.Builder
protected okhttp3.Request.Builder
considerAuthenticationToken
(okhttp3.Request.Builder builder) protected @Nullable RepositoryVersionToken
getRepoVersionFromResponse
(String responseBody) listPartitions
(RepositoryVersionToken repoVersion) protected <R> R
performCall
(okhttp3.Request request, io.lionweb.repoclient.impl.LionWebRepoClientImplHelper.ResponseHandler<R> responseHandler) retrieve
(RepositoryVersionToken repoVersion, @NotNull List<String> nodeIds, int limit) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.lionweb.repoclient.api.HistoryAPIClient
retrieve, retrieve
-
Field Details
-
JSON
protected static final okhttp3.MediaType JSON -
conf
-
gson
protected final com.google.gson.Gson gson
-
-
Constructor Details
-
ClientForHistoryAPIs
-
-
Method Details
-
listPartitions
@NotNull public @NotNull List<Node> listPartitions(RepositoryVersionToken repoVersion) throws IOException - Specified by:
listPartitions
in interfaceHistoryAPIClient
- Throws:
IOException
-
retrieve
@NotNull public @NotNull List<Node> retrieve(RepositoryVersionToken repoVersion, @NotNull @NotNull List<String> nodeIds, int limit) throws IOException - Specified by:
retrieve
in interfaceHistoryAPIClient
- Throws:
IOException
-
buildURL
-
buildURL
protected okhttp3.HttpUrl.Builder buildURL(String api, boolean specifyingClientID, boolean specifyingRepository) -
buildRequest
-
buildRequest
-
performCall
protected <R> R performCall(okhttp3.Request request, io.lionweb.repoclient.impl.LionWebRepoClientImplHelper.ResponseHandler<R> responseHandler) throws IOException - Throws:
IOException
-
considerAuthenticationToken
protected okhttp3.Request.Builder considerAuthenticationToken(okhttp3.Request.Builder builder) -
addGZipCompressionHeader
protected okhttp3.Request.Builder addGZipCompressionHeader(okhttp3.Request.Builder builder) -
getRepoVersionFromResponse
@Nullable protected @Nullable RepositoryVersionToken getRepoVersionFromResponse(String responseBody)
-