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

org.jsoftware.restclient.BaseRestClientCall Maven / Gradle / Ivy

There is a newer version: 1.5
Show newest version
package org.jsoftware.restclient;

import java.io.IOException;

/**
 * Base request builder.
 * @author szalik
 */
public interface BaseRestClientCall {

    /**
     * Execute http call
     * @throws IOException if http request failed
     * @return http response
     */
    RestClientResponse execute() throws IOException;

    /**
     * Add request parameter
     * @param name parameter name
     * @param value parameter value
     * @return self
     */
    C parameter(String name, Object value);

    /**
     * Set http header
     * @param name header name
     * @param value header value
     * @return self
     */
    C header(String name, String value);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy