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

io.hyperfoil.core.parser.ErgonomicsParser Maven / Gradle / Ivy

There is a newer version: 0.27.1
Show newest version
package io.hyperfoil.core.parser;

import io.hyperfoil.api.config.BenchmarkBuilder;
import io.hyperfoil.api.config.ErgonomicsBuilder;

class ErgonomicsParser extends AbstractParser {
   ErgonomicsParser() {
      register("repeatCookies", new PropertyParser.Boolean<>(ErgonomicsBuilder::repeatCookies));
      register("privateHttpPools", new PropertyParser.Boolean<>(ErgonomicsBuilder::privateHttpPools));
      register("userAgentFromSession", new PropertyParser.Boolean<>(ErgonomicsBuilder::userAgentFromSession));
      register("autoRangeCheck", new PropertyParser.Boolean<>(ErgonomicsBuilder::autoRangeCheck));
      register("stopOnInvalid", new PropertyParser.Boolean<>(ErgonomicsBuilder::stopOnInvalid));
   }

   @Override
   public void parse(Context ctx, BenchmarkBuilder target) throws ParserException {
      callSubBuilders(ctx, target.ergonomics());
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy