Package io.hyperfoil.http.handlers
Class ActionStatusHandler.Builder
- java.lang.Object
-
- io.hyperfoil.http.handlers.ActionStatusHandler.Builder
-
- All Implemented Interfaces:
io.hyperfoil.api.config.BuilderBase<StatusHandler.Builder>,io.hyperfoil.api.config.PartialBuilder,StatusHandler.Builder
- Enclosing class:
- ActionStatusHandler
@MetaInfServices(Builder.class) public static class ActionStatusHandler.Builder extends java.lang.Object implements StatusHandler.Builder, io.hyperfoil.api.config.PartialBuilder
Perform certain actions when the status falls into a range.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionStatusHandler.Builderadd(java.lang.String range, java.util.List<io.hyperfoil.api.session.Action.Builder> actions)ActionStatusHandlerbuild()ServiceLoadedBuilderProvider<io.hyperfoil.api.session.Action.Builder>withKey(java.lang.String range)Perform a sequence of actions if the range matches.
-
-
-
Method Detail
-
withKey
public ServiceLoadedBuilderProvider<io.hyperfoil.api.session.Action.Builder> withKey(java.lang.String range)
Perform a sequence of actions if the range matches. Use range as the key and action in the mapping. Possible values of the status should be separated by commas (,). Ranges can be set using low-high (inclusive) (e.g. 200-299), or replacing lower digits with 'x' (e.g. 2xx).- Specified by:
withKeyin interfaceio.hyperfoil.api.config.PartialBuilder- Parameters:
range- Status range.- Returns:
- Builder
-
add
public ActionStatusHandler.Builder add(java.lang.String range, java.util.List<io.hyperfoil.api.session.Action.Builder> actions)
-
build
public ActionStatusHandler build()
- Specified by:
buildin interfaceStatusHandler.Builder
-
-