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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidhandleResponse(org.apache.http.HttpResponse httpResponse, org.apache.http.client.methods.HttpUriRequest httpUriRequest) booleanFor 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:
IOExceptionAGHttpException
-
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
-