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

io.hyperfoil.http.config.HttpPluginConfig Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy