Package com.franz.agraph.http.handler
Class AGTQRStreamer
java.lang.Object
com.franz.agraph.http.handler.AGResponseHandler
com.franz.agraph.http.handler.AGTQRStreamer
- Direct Known Subclasses:
AGTQRJSONStreamer
,AGTQRTSVStreamer
,AGTQRXMLStreamer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AGTQRStreamer
createStreamer
(TupleQueryResultFormat format, AGValueFactory vf) abstract String
abstract TupleQueryResult
abstract void
handleResponse
(org.apache.http.HttpResponse httpResponse, org.apache.http.client.methods.HttpUriRequest httpUriRequest) boolean
False because the Result will release the HTTP resources.
-
Constructor Details
-
AGTQRStreamer
-
-
Method Details
-
getRequestMIMEType
- Overrides:
getRequestMIMEType
in classAGResponseHandler
-
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 the Result class, which is an inner class of child classes.- Overrides:
releaseConnection
in classAGResponseHandler
- Returns:
- Boolean always returns true
-
handleResponse
public abstract void handleResponse(org.apache.http.HttpResponse httpResponse, org.apache.http.client.methods.HttpUriRequest httpUriRequest) throws IOException, AGHttpException - Specified by:
handleResponse
in classAGResponseHandler
- Throws:
IOException
AGHttpException
-
getResult
-
createStreamer
-