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

hr.com.vgv.verano.http.request.Request Maven / Gradle / Ivy

There is a newer version: 0.41
Show newest version
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
                )
            )
        );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy