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

public abstract class AGResponseHandler extends Object
  • Constructor Details

    • AGResponseHandler

      public AGResponseHandler(String mimeType)
  • Method Details

    • getRequestMIMEType

      public String 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 calling handleResponse(HttpResponse, HttpUriRequest); this can be overridden in subclasses that stream results.
      Returns:
      Boolean always returns true