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

com.github.jerryxia.devutil.http.async.IgnoreResponseCallback Maven / Gradle / Ivy

/**
 * 
 */
package com.github.jerryxia.devutil.http.async;

import org.apache.http.HttpResponse;

import org.apache.http.client.utils.HttpClientUtils;
import org.apache.http.concurrent.FutureCallback;

/**
 * @author Administrator
 *
 */
public class IgnoreResponseCallback implements FutureCallback {
    public IgnoreResponseCallback() {

    }

    public void completed(HttpResponse httpResponse) {
        HttpClientUtils.closeQuietly(httpResponse);
    }

    public void failed(Exception e) {
        e.printStackTrace();
    }

    public void cancelled() {

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy