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

io.hyperfoil.core.steps.ClearHttpCacheAction Maven / Gradle / Ivy

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

import org.kohsuke.MetaInfServices;

import io.hyperfoil.api.config.Name;
import io.hyperfoil.api.session.Action;
import io.hyperfoil.api.session.Session;

public class ClearHttpCacheAction implements Action {
   @Override
   public void run(Session session) {
      session.httpCache().clear();
   }

   /**
    * Drops all entries from HTTP cache in the session.
    */
   @MetaInfServices(Action.Builder.class)
   @Name("clearHttpCache")
   public static class Builder implements Action.Builder {
      @Override
      public ClearHttpCacheAction build() {
         return new ClearHttpCacheAction();
      }
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy