Package davmail.exchange.graph
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.codehaus.jettison.json.JSONObjecthandleResponse(org.apache.http.HttpResponse response) protected byte[]readResponse(org.apache.http.HttpResponse response)
-
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:
handleResponsein interfaceorg.apache.http.client.ResponseHandler<org.codehaus.jettison.json.JSONObject>- Throws:
IOException
-
readResponse
- Throws:
IOException
-