public class Hoverfly
extends java.lang.Object
implements java.lang.AutoCloseable
| Constructor and Description |
|---|
Hoverfly(HoverflyConfig hoverflyConfig,
HoverflyMode hoverflyMode)
Instantiates
Hoverfly |
Hoverfly(HoverflyMode hoverflyMode)
Instantiates
Hoverfly |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Stops the running
Hoverfly process and clean up resources |
void |
exportSimulation(java.nio.file.Path path)
Exports a simulation and stores it on the filesystem at the given path
|
HoverflyConfig |
getHoverflyConfig()
Gets the validated
HoverflyConfig object used by the current Hoverfly instance |
Simulation |
getSimulation()
Gets the simulation currently used by the running
Hoverfly instance |
void |
importSimulation(SimulationSource simulationSource)
Imports a simulation into
Hoverfly from a SimulationSource |
void |
start()
Adds Hoverfly SSL certificate to the trust store
Sets the proxy system properties to route through Hoverfly
Starts Hoverfly
|
void |
stop()
Deprecated.
As of release 0.3.8, replaced by
close() |
public Hoverfly(HoverflyConfig hoverflyConfig, HoverflyMode hoverflyMode)
HoverflyhoverflyConfig - the confighoverflyMode - the modepublic Hoverfly(HoverflyMode hoverflyMode)
HoverflyhoverflyMode - the modepublic void start()
@Deprecated public void stop()
close()public void close()
Hoverfly process and clean up resourcesclose in interface java.lang.AutoCloseablepublic void importSimulation(SimulationSource simulationSource)
Hoverfly from a SimulationSourcesimulationSource - the simulation to importpublic void exportSimulation(java.nio.file.Path path)
path - the path on the filesystem to where the simulation should be storedpublic Simulation getSimulation()
Hoverfly instancepublic HoverflyConfig getHoverflyConfig()
HoverflyConfig object used by the current Hoverfly instance