public abstract class AGTQRStreamer extends AGResponseHandler
Constructor and Description |
---|
AGTQRStreamer(String mimeType) |
Modifier and Type | Method and Description |
---|---|
static AGTQRStreamer |
createStreamer(TupleQueryResultFormat format,
AGValueFactory vf) |
abstract String |
getRequestMIMEType() |
abstract TupleQueryResult |
getResult() |
abstract 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.
|
public AGTQRStreamer(String mimeType)
public abstract String getRequestMIMEType()
getRequestMIMEType
in class AGResponseHandler
public boolean releaseConnection()
handleResponse(HttpResponse, HttpUriRequest)
,
but here the results are pulled when needed from the Result class,
which is an inner class of child classes.releaseConnection
in class AGResponseHandler
public abstract void handleResponse(org.apache.http.HttpResponse httpResponse, org.apache.http.client.methods.HttpUriRequest httpUriRequest) throws IOException, AGHttpException
handleResponse
in class AGResponseHandler
IOException
AGHttpException
public abstract TupleQueryResult getResult()
public static AGTQRStreamer createStreamer(TupleQueryResultFormat format, AGValueFactory vf)
Copyright © 2024 Franz Inc.. All rights reserved.