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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleResponse(org.apache.http.HttpResponse httpResponse, HttpUriRequest httpUriRequest) booleanFalse 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:
getRequestMIMETypein 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:
releaseConnectionin classAGTQRStreamer- Returns:
- Boolean always returns true
-
handleResponse
public void handleResponse(org.apache.http.HttpResponse httpResponse, HttpUriRequest httpUriRequest) throws IOException, AGHttpException - Specified by:
handleResponsein classAGTQRStreamer- Throws:
IOExceptionAGHttpException
-
getResult
- Specified by:
getResultin classAGTQRStreamer
-