public interface HoverflyClient
| Modifier and Type | Interface and Description |
|---|---|
static class |
HoverflyClient.Builder
HTTP client builder for Hoverfly admin API
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSimulation(Simulation simulation)
Append the given simulation to the existing one in Hoverfly, duplicated pair will not be added
|
void |
cleanDiffs() |
static HoverflyClient |
createDefault()
Static factory method for default Hoverfly client
|
static HoverflyClient.Builder |
custom()
Static factory method for creating a
HoverflyClient.Builder |
void |
deleteJournal() |
void |
deleteSimulation() |
void |
deleteState()
Deletes all state from Hoverfly.
|
HoverflyInfoView |
getConfigInfo() |
DiffView |
getDiffs() |
boolean |
getHealth()
Check Hoverfly is healthy
|
Journal |
getJournal(int offset,
int limit) |
Journal |
getJournal(int offset,
int limit,
SortParams sortParams) |
Simulation |
getSimulation() |
com.fasterxml.jackson.databind.JsonNode |
getSimulationJson()
Get the simulation from Hoverfly as
JsonNode |
StateView |
getState()
Gets the state from Hoverfly.
|
Journal |
searchJournal(Request request) |
void |
setDestination(java.lang.String destination) |
void |
setMode(HoverflyMode mode)
Update Hoverfly mode
|
void |
setMode(HoverflyMode mode,
ModeArguments modeArguments)
Update Hoverfly mode with additional arguments
|
void |
setSimulation(Simulation simulation)
Set the given simulation data, overwriting any existing one.
|
void |
setSimulation(java.lang.String simulation) |
void |
setState(StateView stateView)
Deletes all state from Hoverfly and then sets the state with the specified
StateView. |
void |
updateState(StateView stateView)
Updates state in Hoverfly.
|
void setSimulation(Simulation simulation)
simulation - Hoverfly simulation data to setvoid setSimulation(java.lang.String simulation)
void addSimulation(Simulation simulation)
simulation - Hoverfly simulation data to appendSimulation getSimulation()
com.fasterxml.jackson.databind.JsonNode getSimulationJson()
JsonNodeJsonNodevoid deleteSimulation()
Journal getJournal(int offset, int limit)
Journal getJournal(int offset, int limit, SortParams sortParams)
void deleteJournal()
void deleteState()
void setState(StateView stateView)
StateView.stateView - the StateViewvoid updateState(StateView stateView)
StateView.stateView - the StateViewDiffView getDiffs()
void cleanDiffs()
HoverflyInfoView getConfigInfo()
void setDestination(java.lang.String destination)
void setMode(HoverflyMode mode)
mode - HoverflyModevoid setMode(HoverflyMode mode, ModeArguments modeArguments)
mode - HoverflyModemodeArguments - additional arguments such as headers to captureboolean getHealth()
static HoverflyClient.Builder custom()
HoverflyClient.Builderstatic HoverflyClient createDefault()