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

org.resthub.web.support.BodyReader Maven / Gradle / Ivy

Go to download

RESThub webservice client for requesting REST webservices with JSON support bundled

The newest version!
package org.resthub.web.support;

import com.fasterxml.jackson.core.type.TypeReference;
import com.ning.http.client.Response;

import java.io.IOException;

public interface BodyReader {

    public boolean canRead(Response response);

    public  T readEntity(Response resp, Class entityClass) throws IOException;
    public  T readEntity(Response resp, Class entityClass, String charset) throws IOException;

    public  T readEntity(Response resp, TypeReference valueTypeRef) throws IOException;
    public  T readEntity(Response resp, TypeReference valueTypeRef, String charset) throws IOException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy