AGTQRJSONStreamer (agraph-java-client 5.0.4-SNAPSHOT API)
Description: declaration: package: com.franz.agraph.http.handler, class: AGTQRJSONStreamer

Package com.franz.agraph.http.handler

# Class AGTQRJSONStreamer

java.lang.Object
com.franz.agraph.http.handler.AGResponseHandler
com.franz.agraph.http.handler.AGTQRStreamer
com.franz.agraph.http.handler.AGTQRJSONStreamer

public class AGTQRJSONStreamer extends AGTQRStreamer
Similar to `SPARQLResultsXMLParser` but uses rdf4j-like JSON parsing instead of SAXParser so the results streaming in the http response can be processed in a `TupleQueryResult` pulling from the JSON stream.

Since:
  v2.1.0

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AGTQRJSONStreamer(AGValueFactory vf)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getRequestMIMEType()`
  `org.eclipse.rdf4j.query.TupleQueryResult`
  `getResult()`
  `void`
  `handleResponse(org.apache.http.HttpResponse httpResponse, HttpUriRequest httpUriRequest)`

  ### Methods inherited from class com.franz.agraph.http.handler.AGTQRStreamer

  `createStreamer, releaseConnection`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### AGTQRJSONStreamer

    public AGTQRJSONStreamer(AGValueFactory vf)

- ## Method Details

  - ### getRequestMIMEType

    public String getRequestMIMEType()
    Specified by:
      `getRequestMIMEType` in class `AGTQRStreamer`

  - ### handleResponse

    public void handleResponse(org.apache.http.HttpResponse httpResponse, HttpUriRequest httpUriRequest) throws IOException, AGHttpException
    Specified by:
      `handleResponse` in class `AGTQRStreamer`
    Throws:
      `IOException`
      `AGHttpException`

  - ### getResult

    public org.eclipse.rdf4j.query.TupleQueryResult getResult()
    Specified by:
      `getResult` in class `AGTQRStreamer`