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
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleResponse
(org.apache.http.HttpResponse httpResponse, HttpUriRequest httpUriRequest) Methods inherited from class com.franz.agraph.http.handler.AGTQRStreamer
createStreamer, releaseConnection
-
Constructor Details
-
AGTQRJSONStreamer
-
-
Method Details
-
getRequestMIMEType
- Specified by:
getRequestMIMEType
in classAGTQRStreamer
-
handleResponse
public void handleResponse(org.apache.http.HttpResponse httpResponse, HttpUriRequest httpUriRequest) throws IOException, AGHttpException - Specified by:
handleResponse
in classAGTQRStreamer
- Throws:
IOException
AGHttpException
-
getResult
- Specified by:
getResult
in classAGTQRStreamer
-