Example usage for org.apache.http.client ResponseHandler interface-usage

List of usage examples for org.apache.http.client ResponseHandler interface-usage

Introduction

In this page you can find the example usage for org.apache.http.client ResponseHandler interface-usage.

Usage

From source file ca.sqlpower.http.HttpResponseHandler.java

/**
 * A custom ReponseHandler that, if it receives an HTTP 500 status (Internal
 * Server Error), then it will retrieve the server stacktrace in the response
 * entity (Servers will be implemented to take server stacktraces and place them
 * in the response). This way, it will make it easier for client users to report
 * errors to us to fix in the server.

From source file com.klarna.checkout.Handler.java

/**
 * ResponseHandler implementation that does not throw exception
 * on status codes 3xx.
 */
class Handler implements ResponseHandler<HttpResponse> {

From source file com.seleritycorp.context.RequestResponseHandler.java

/**
 * Parses query response to JsonObject, or upon error extracts descriptive error message.
 */
public class RequestResponseHandler implements org.apache.http.client.ResponseHandler<JsonObject> {
    private static final Log log = LogFactory.getLog(RequestResponseHandler.class);

From source file com.ericsson.gerrit.plugins.highavailability.forwarder.rest.HttpResponseHandler.java

class HttpResponseHandler implements ResponseHandler<HttpResult> {

    static class HttpResult {
        private final boolean successful;
        private final String message;

From source file org.eclipse.emf.ecp.emf2web.json.JSONResponseHandler.java

public class JSONResponseHandler<T> implements ResponseHandler<T> {

    @Override
    public T handleResponse(HttpResponse response) throws ClientProtocolException, IOException {
        final StatusLine statusLine = response.getStatusLine();

From source file com.wudaosoft.net.httpclient.FileResponseHandler.java

/**
 * @author Changsoul.Wu
 */
public class FileResponseHandler implements ResponseHandler<File> {

    private File file;

From source file co.com.soinsoftware.altablero.utils.HttpRequest.java

/**
 *
 * @author Carlos Rodriguez
 * @since 08/05/2015
 */
@Service

From source file es.tid.fiware.rss.oauth.service.ResponseHandler.java

/**
 * 
 *
 */
public class ResponseHandler implements org.apache.http.client.ResponseHandler<HttpResponse> {
    private static final Logger log = LoggerFactory.getLogger(ResponseHandler.class);

From source file es.upm.fiware.rss.oauth.service.ResponseHandler.java

/**
 * 
 *
 */
public class ResponseHandler implements org.apache.http.client.ResponseHandler<HttpResponse> {
    private static final Logger log = LoggerFactory.getLogger(ResponseHandler.class);

From source file org.cvasilak.jboss.mobile.app.net.JBossResponseHandler.java

public class JBossResponseHandler implements ResponseHandler<String> {

    public String handleResponse(final HttpResponse response) throws HttpResponseException, IOException {
        StatusLine statusLine = response.getStatusLine();

        if (statusLine.getStatusCode() >= 300 && statusLine.getStatusCode() < 500) {