All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.openbox.http.responses.JsonResponseHandler Maven / Gradle / Ivy

There is a newer version: 2.1.6
Show newest version
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