Example usage for org.apache.http.impl.client AbstractResponseHandler handleEntity

List of usage examples for org.apache.http.impl.client AbstractResponseHandler handleEntity

Introduction

In this page you can find the example usage for org.apache.http.impl.client AbstractResponseHandler handleEntity.

Prototype

public abstract T handleEntity(HttpEntity entity) throws IOException;

Source Link

Document

Handle the response entity and transform it into the actual response object.

Usage

From source file:org.opendatakit.briefcase.reused.http.CommonsHttp.java

private static <T> T uncheckedHandleEntity(AbstractResponseHandler<T> handler, HttpEntity entity) {
    try {/*from ww w.  j  a v a2  s  .c om*/
        return handler.handleEntity(entity);
    } catch (IOException e) {
        throw new UncheckedIOException(e);
    }
}