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 |
java.lang.String |
getHost()
Returns the host for the remote instance of hoverfly
|
int |
getProxyPort()
Gets the proxy port
Hoverfly is configured to run on |
java.lang.String |
getSslCertificatePath()
Gets the path to SSL certificate
|
java.lang.String |
getSslKeyPath()
Gets the path to SSL key
|
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 |
sslCertificatePath(java.lang.String sslCertificatePath)
Sets the SSL certificate file for overriding default Hoverfly self-signed certificate
The file can be in any PEM encoded certificate, in .crt or .pem extensions
|
HoverflyConfig |
sslKeyPath(java.lang.String sslKeyPath)
Sets the SSL key file for overriding default Hoverfly SSL key
The file can be in any PEM encoded key, in .key or .pem extensions
|
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 localhost, default to falseHoverflyConfig for further customizationspublic int getProxyPort()
Hoverfly is configured to run onpublic int getAdminPort()
Hoverfly is configured to run onpublic boolean isProxyLocalHost()
public HoverflyConfig useRemoteInstance()
HoverflyConfig for further customizationspublic HoverflyConfig useRemoteInstance(java.lang.String remoteHost)
remoteHost - the hostname of the remote hoverflyHoverflyConfig for further customizationspublic boolean isRemoteInstance()
public java.lang.String getHost()
public HoverflyConfig sslCertificatePath(java.lang.String sslCertificatePath)
sslCertificatePath - certificate file in classpathHoverflyConfig for further customizationspublic HoverflyConfig sslKeyPath(java.lang.String sslKeyPath)
sslKeyPath - key file in classpathHoverflyConfig for further customizationspublic java.lang.String getSslCertificatePath()
public java.lang.String getSslKeyPath()