Class ClientForRawBulkAPIs

java.lang.Object
io.lionweb.repoclient.impl.ClientForRawBulkAPIs
All Implemented Interfaces:
RawBulkAPIClient

public class ClientForRawBulkAPIs extends Object implements RawBulkAPIClient
  • Field Details

    • JSON

      protected static final okhttp3.MediaType JSON
    • conf

      protected final RepoClientConfiguration conf
    • gson

      protected final com.google.gson.Gson gson
  • Constructor Details

  • Method Details

    • getLionWebVersion

      @NotNull public @NotNull LionWebVersion getLionWebVersion()
      Specified by:
      getLionWebVersion in interface RawBulkAPIClient
    • rawCreatePartitions

      @Nullable public @Nullable RepositoryVersionToken rawCreatePartitions(@NotNull @NotNull String data) throws IOException
      Specified by:
      rawCreatePartitions in interface RawBulkAPIClient
      Throws:
      IOException
    • rawStore

      @Nullable public @Nullable RepositoryVersionToken rawStore(@NotNull @NotNull String json) throws IOException
      Specified by:
      rawStore in interface RawBulkAPIClient
      Throws:
      IOException
    • rawRetrieve

      public String rawRetrieve(@NotNull @NotNull List<String> nodeIds, int limit) throws IOException
      Specified by:
      rawRetrieve in interface RawBulkAPIClient
      Throws:
      IOException
    • buildURL

      protected okhttp3.HttpUrl.Builder buildURL(String api)
    • buildURL

      protected okhttp3.HttpUrl.Builder buildURL(String api, boolean specifyingClientID, boolean specifyingRepository)
    • buildRequest

      protected okhttp3.Request.Builder buildRequest(String api)
    • buildRequest

      protected okhttp3.Request.Builder buildRequest(String api, boolean specifyingClientID, boolean specifyingRepository, boolean considerAuthenticationToken, Map<String,String> additionalParams)
    • 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)