AGResponseHandler (agraph-java-client 5.0.4-SNAPSHOT API)
Description: declaration: package: com.franz.agraph.http.handler, class: AGResponseHandler

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`

public abstract class AGResponseHandler extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AGResponseHandler(String mimeType)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getRequestMIMEType()`
  `abstract void`
  `handleResponse(org.apache.http.HttpResponse httpResponse, HttpUriRequest httpUriRequest)`
  `boolean`
  `releaseConnection()`
  For most responses, AGHTTPClient releases resources after calling `handleResponse(HttpResponse, HttpUriRequest)`; this can be overridden in subclasses that stream results.

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### AGResponseHandler

    public AGResponseHandler(String mimeType)

- ## Method Details

  - ### getRequestMIMEType

    public String getRequestMIMEType()

  - ### handleResponse

    public abstract void handleResponse(org.apache.http.HttpResponse httpResponse, 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