io.hyperfoil.http.config.HttpPluginConfig Maven / Gradle / Ivy
package io.hyperfoil.http.config;
import java.util.Map;
import io.hyperfoil.api.config.PluginConfig;
import io.hyperfoil.api.config.Visitor;
public class HttpPluginConfig implements PluginConfig {
private final Map http;
@Visitor.Ignore
private final Http defaultHttp;
public HttpPluginConfig(Map http) {
this.http = http;
this.defaultHttp = http.values().stream().filter(Http::isDefault).findFirst().orElse(null);
}
public Map http() {
return http;
}
public Http defaultHttp() {
return defaultHttp;
}
}