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

org.ovirt.engine.sdk4.HttpClient Maven / Gradle / Ivy

There is a newer version: 4.5.1
Show newest version
package org.ovirt.engine.sdk4;

import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpUriRequest;

/**
 * This interface defines methods which should implement HttpClient class of specific http client version.
 */
public interface HttpClient {

    /**
     * This method will send http request
     *
     * @param request request which should be send to host
     * @return response returned by host
     */
    HttpResponse execute(HttpUriRequest request) throws Exception;

    /**
     * Close http connection
     *
     * @throws Exception
     */
    void close() throws Exception;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy