public class AGTQRXMLStreamer extends AGTQRStreamer
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.| Constructor and Description |
|---|
AGTQRXMLStreamer(AGValueFactory vf) |
| Modifier and Type | Method and Description |
|---|---|
String |
getRequestMIMEType() |
TupleQueryResult |
getResult() |
void |
handleResponse(org.apache.http.HttpResponse httpResponse,
org.apache.http.client.methods.HttpUriRequest httpUriRequest) |
boolean |
releaseConnection()
False because the Result will release the HTTP resources.
|
createStreamerpublic AGTQRXMLStreamer(AGValueFactory vf)
public String getRequestMIMEType()
getRequestMIMEType in class AGTQRStreamerpublic boolean releaseConnection()
handleResponse(HttpResponse, HttpUriRequest),
but here the results are pulled when needed from the Result.releaseConnection in class AGTQRStreamerpublic void handleResponse(org.apache.http.HttpResponse httpResponse,
org.apache.http.client.methods.HttpUriRequest httpUriRequest)
throws IOException,
AGHttpException
handleResponse in class AGTQRStreamerIOExceptionAGHttpExceptionpublic TupleQueryResult getResult()
getResult in class AGTQRStreamerCopyright © 2021 Franz Inc.. All rights reserved.