com.ingenico.connect.gateway.sdk.java.BodyHandler Maven / Gradle / Ivy
package com.ingenico.connect.gateway.sdk.java;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
/**
* An interface for handling binary responses.
*/
public interface BodyHandler {
/**
* @param bodyStream The raw response body as an input stream. Note that it will be closed outside of this method.
* @param headers The headers that were returned by the Ingenico ePayments platform. Never {@code null}.
*/
void handleBody(InputStream bodyStream, List headers) throws IOException;
}