Package org.wiremock.extensions.state
Class StateExtension
- java.lang.Object
-
- org.wiremock.extensions.state.StateExtension
-
- All Implemented Interfaces:
com.github.tomakehurst.wiremock.extension.ExtensionFactory
- Direct Known Subclasses:
StandaloneStateExtension
public class StateExtension extends java.lang.Object implements com.github.tomakehurst.wiremock.extension.ExtensionFactoryFactory to register all extensions for handling state.Register with:
private static final Store<String, Object> store = new CaffeineStore(); {@literal @}RegisterExtension public static WireMockExtension wm = WireMockExtension.newInstance() .options( wireMockConfig().dynamicPort().dynamicHttpsPort() .extensions(new StateExtension(store)) ) .build();
-
-
Constructor Summary
Constructors Constructor Description StateExtension(com.github.tomakehurst.wiremock.store.Store<java.lang.String,java.lang.Object> store)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<com.github.tomakehurst.wiremock.extension.Extension>create(com.github.tomakehurst.wiremock.extension.WireMockServices services)
-