ch.loway.oss.ari4java.tools.HttpClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ari4java Show documentation
Show all versions of ari4java Show documentation
Asterisk ARI interface bindings for Java
package ch.loway.oss.ari4java.tools;
import java.util.List;
/**
* Interface to pluggable HTTP client implementation
*
* @author mwalton
*/
public interface HttpClient {
String httpActionSync(String uri, String method, List parametersQuery, String body, List errors) throws RestException;
byte[] httpActionSyncAsBytes(String uri, String method, List parametersQuery, String body, List errors) throws RestException;
void httpActionAsync(String uri, String method, List parametersQuery, String body, List errors, HttpResponseHandler responseHandler, boolean binary) throws RestException;
void destroy();
}