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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AGTQRStreamercreateStreamer(TupleQueryResultFormat format, AGValueFactory vf) abstract Stringabstract TupleQueryResultabstract voidhandleResponse(org.apache.http.HttpResponse httpResponse, org.apache.http.client.methods.HttpUriRequest httpUriRequest) booleanFalse because the Result will release the HTTP resources.
-
Constructor Details
-
AGTQRStreamer
-
-
Method Details
-
getRequestMIMEType
- Overrides:
getRequestMIMETypein 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:
releaseConnectionin 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:
handleResponsein classAGResponseHandler- Throws:
IOExceptionAGHttpException
-
getResult
-
createStreamer
-