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

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

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

import org.kohsuke.MetaInfServices;

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

public class ClearHttpCacheAction implements Action {
   @Override
   public void run(Session session) {
      HttpCache.get(session).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