
com.cybersource.flex.sdk.HttpClient Maven / Gradle / Ivy
package com.cybersource.flex.sdk;
import com.cybersource.flex.sdk.impl.HttpResponse;
import java.io.IOException;
import java.util.Map;
/**
* This interface can be implemented by merchant when non-standard Java HTTP capabilities are required. For example
* there might be specific security setting like intercepting proxy that uses non-standard TLS configuration.
*/
public interface HttpClient {
/**
*
* @param url
* @param headers
* @return status, headers and payload
* @throws IOException
*/
HttpResponse get(String url, Map headers) throws IOException;
/**
*
* @param url
* @param headers
* @param payload
* @return status, headers and payload
* @throws IOException
*/
HttpResponse post(String url, Map headers, String payload) throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy