Class JsonResponseHandler

java.lang.Object
davmail.exchange.graph.JsonResponseHandler
All Implemented Interfaces:
org.apache.http.client.ResponseHandler<org.codehaus.jettison.json.JSONObject>

public class JsonResponseHandler extends Object implements org.apache.http.client.ResponseHandler<org.codehaus.jettison.json.JSONObject>
Generic JSON response handler for graph API calls
  • Field Details

    • LOGGER

      protected static final org.apache.log4j.Logger LOGGER
  • Constructor Details

    • JsonResponseHandler

      public JsonResponseHandler()
  • Method Details

    • handleResponse

      public org.codehaus.jettison.json.JSONObject handleResponse(org.apache.http.HttpResponse response) throws IOException
      Specified by:
      handleResponse in interface org.apache.http.client.ResponseHandler<org.codehaus.jettison.json.JSONObject>
      Throws:
      IOException
    • readResponse

      protected byte[] readResponse(org.apache.http.HttpResponse response) throws IOException
      Throws:
      IOException