com.googlecode.openbox.http.responses.JsonResponseHandler Maven / Gradle / Ivy
package com.googlecode.openbox.http.responses;
import java.io.IOException;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import com.googlecode.openbox.http.AbstractResponseHandler;
public class JsonResponseHandler extends
AbstractResponseHandler> {
private Class classT;
public JsonResponseHandler(Class classT) {
this.classT = classT;
}
@Override
public JsonResponse handleResponse(HttpResponse response)
throws ClientProtocolException, IOException {
try {
return new JsonResponse(response, getHttpContext(),
getExecutorMonitorManager(), classT);
} catch (Exception e) {
return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy