hr.com.vgv.verano.http.request.Request Maven / Gradle / Ivy
package hr.com.vgv.verano.http.request;
import org.cactoos.iterable.IterableOf;
import org.cactoos.iterable.Joined;
import hr.com.vgv.verano.http.Dict;
import hr.com.vgv.verano.http.DictInput;
import hr.com.vgv.verano.http.DictOf;
public class Request extends Dict.Template
{
public Request(String method, DictInput... inputs) {
this("", method, inputs);
}
public Request(String path, String method, DictInput... inputs)
{
this(path, method, new IterableOf<>(inputs));
}
public Request(String path, String method, Iterable inputs)
{
super(
() -> new DictOf(
new Joined(
new IterableOf<>(
new Path(path), new Method(method)
),
inputs
)
)
);
}
}