Package com.franz.agraph.http.handler
Class AGTQRXMLStreamer
java.lang.Object
com.franz.agraph.http.handler.AGResponseHandler
com.franz.agraph.http.handler.AGTQRStreamer
com.franz.agraph.http.handler.AGTQRXMLStreamer
Similar to
SPARQLResultsXMLParser
but uses XMLStreamReader
instead of SAXParser so the results
streaming in the http response can be processed in a
TupleQueryResult
pulling from the stream.- Since:
- v2.1.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleResponse
(org.apache.http.HttpResponse httpResponse, org.apache.http.client.methods.HttpUriRequest httpUriRequest) boolean
False because the Result will release the HTTP resources.Methods inherited from class com.franz.agraph.http.handler.AGTQRStreamer
createStreamer
-
Constructor Details
-
AGTQRXMLStreamer
-
-
Method Details
-
getRequestMIMEType
- Specified by:
getRequestMIMEType
in classAGTQRStreamer
-
releaseConnection
public boolean releaseConnection()False because the Result will release the HTTP resources. For most responses, AGHTTPClient releases resources after callinghandleResponse(HttpResponse, HttpUriRequest)
, but here the results are pulled when needed from theAGTQRXMLStreamer.Result
.- Overrides:
releaseConnection
in classAGTQRStreamer
- Returns:
- Boolean always returns true
-
handleResponse
public void handleResponse(org.apache.http.HttpResponse httpResponse, org.apache.http.client.methods.HttpUriRequest httpUriRequest) throws IOException, AGHttpException - Specified by:
handleResponse
in classAGTQRStreamer
- Throws:
IOException
AGHttpException
-
getResult
- Specified by:
getResult
in classAGTQRStreamer
-