Class WeaviateGraphQLTypedResponseConsumer<C>

java.lang.Object
org.apache.hc.core5.http.nio.support.AbstractAsyncResponseConsumer<Result<GraphQLTypedResponse<C>>,byte[]>
io.weaviate.client.base.http.async.WeaviateGraphQLTypedResponseConsumer<C>
All Implemented Interfaces:
org.apache.hc.core5.http.nio.AsyncDataConsumer, org.apache.hc.core5.http.nio.AsyncResponseConsumer<Result<GraphQLTypedResponse<C>>>, org.apache.hc.core5.http.nio.ResourceHolder

public class WeaviateGraphQLTypedResponseConsumer<C> extends org.apache.hc.core5.http.nio.support.AbstractAsyncResponseConsumer<Result<GraphQLTypedResponse<C>>,byte[]>
  • Constructor Details

    • WeaviateGraphQLTypedResponseConsumer

      public WeaviateGraphQLTypedResponseConsumer(Class<C> classOfT)
  • Method Details

    • buildResult

      protected Result<GraphQLTypedResponse<C>> buildResult(org.apache.hc.core5.http.HttpResponse response, byte[] entity, org.apache.hc.core5.http.ContentType contentType)
      Specified by:
      buildResult in class org.apache.hc.core5.http.nio.support.AbstractAsyncResponseConsumer<Result<GraphQLTypedResponse<C>>,byte[]>
    • informationResponse

      public void informationResponse(org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.http.protocol.HttpContext context) throws org.apache.hc.core5.http.HttpException, IOException
      Throws:
      org.apache.hc.core5.http.HttpException
      IOException