public class Hoverfly
extends java.lang.Object
| Constructor and Description |
|---|
Hoverfly(HoverflyConfig hoverflyConfig,
HoverflyMode hoverflyMode)
Instantiates
Hoverfly |
Hoverfly(HoverflyMode hoverflyMode)
Instantiates
Hoverfly |
| Modifier and Type | Method and Description |
|---|---|
void |
exportSimulation(java.nio.file.Path path)
Exports a simulation and stores it on the filesystem at the given path
|
int |
getAdminPort() |
int |
getProxyPort()
Gets the proxy port
Hoverfly is running on |
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()
Stops the running
Hoverfly process |
public Hoverfly(HoverflyConfig hoverflyConfig, HoverflyMode hoverflyMode)
HoverflyhoverflyConfig - the confighoverflyMode - the modepublic Hoverfly(HoverflyMode hoverflyMode)
HoverflyhoverflyMode - the modepublic void start()
public void stop()
Hoverfly processpublic 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 int getProxyPort()
Hoverfly is running onpublic int getAdminPort()