Package com.franz.agraph.http.handler
Class AGResponseHandler
java.lang.Object
com.franz.agraph.http.handler.AGResponseHandler
- Direct Known Subclasses:
AGBooleanHandler
,AGBQRHandler
,AGDownloadHandler
,AGErrorHandler
,AGJSONArrayHandler
,AGJSONHandler
,AGLongHandler
,AGRawStreamer
,AGRDFHandler
,AGStringHandler
,AGTQRHandler
,AGTQRStreamer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
handleResponse
(org.apache.http.HttpResponse httpResponse, org.apache.http.client.methods.HttpUriRequest httpUriRequest) boolean
For most responses, AGHTTPClient releases resources after callinghandleResponse(HttpResponse, HttpUriRequest)
; this can be overridden in subclasses that stream results.
-
Constructor Details
-
AGResponseHandler
-
-
Method Details
-
getRequestMIMEType
-
handleResponse
public abstract void handleResponse(org.apache.http.HttpResponse httpResponse, org.apache.http.client.methods.HttpUriRequest httpUriRequest) throws IOException, AGHttpException - Throws:
IOException
AGHttpException
-
releaseConnection
public boolean releaseConnection()For most responses, AGHTTPClient releases resources after callinghandleResponse(HttpResponse, HttpUriRequest)
; this can be overridden in subclasses that stream results.- Returns:
- Boolean always returns true
-