public class HoverflyConfig
extends java.lang.Object
Hoverfly| Modifier and Type | Method and Description |
|---|---|
HoverflyConfig |
adminPort(int adminPort)
Sets the admin port for
Hoverfly |
static HoverflyConfig |
configs()
New instance
|
int |
getAdminPort()
Gets the admin port
Hoverfly is configured to run on |
int |
getProxyPort()
Gets the proxy port
Hoverfly is configured to run on |
java.lang.String |
getRemoteHost()
Returns the host for the remote instance of hoverfly
|
boolean |
isProxyLocalHost()
Whether localhost should be proxied
|
boolean |
isRemoteInstance()
True is a remote Hoverfly should be used
|
HoverflyConfig |
proxyLocalHost(boolean proxyLocalHost)
Controls whether we want to proxy localhost.
|
HoverflyConfig |
proxyPort(int proxyPort)
Sets the proxy port for
Hoverfly |
HoverflyConfig |
useRemoteInstance()
By calling this it means a remote Hoverfly will be used - not started by Java.
|
HoverflyConfig |
useRemoteInstance(java.lang.String remoteHost)
By calling this it means a remote Hoverfly will be used - not started by Java
|
public static HoverflyConfig configs()
public HoverflyConfig proxyPort(int proxyPort)
HoverflyproxyPort - the proxy portHoverflyConfig for further customizationspublic HoverflyConfig adminPort(int adminPort)
HoverflyadminPort - the admin portHoverflyConfig for further customizationspublic HoverflyConfig proxyLocalHost(boolean proxyLocalHost)
Hoverfly.proxyLocalHost - whether to proxy localhostHoverflyConfig for further customizationspublic int getProxyPort()
Hoverfly is configured to run onpublic int getAdminPort()
Hoverfly is configured to run onpublic boolean isProxyLocalHost()
public HoverflyConfig useRemoteInstance()
public HoverflyConfig useRemoteInstance(java.lang.String remoteHost)
remoteHost - the url of the remote hoverflypublic boolean isRemoteInstance()
public java.lang.String getRemoteHost()