nl.renarj.jasdb.rest.serializers.RestResponseHandler Maven / Gradle / Ivy
package nl.renarj.jasdb.rest.serializers;
import nl.renarj.jasdb.rest.exceptions.RestException;
import nl.renarj.jasdb.rest.model.RestEntity;
import java.io.InputStream;
import java.io.OutputStream;
public interface RestResponseHandler {
public T deserialize(Class dataType, InputStream inputStream) throws RestException;
public T deserialize(Class dataType, String data) throws RestException;
public void serialize(RestEntity entity, OutputStream outputStream) throws RestException;
public String getMediaType();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy