Class ProxyConfiguration
- java.lang.Object
-
- com.lazerycode.jmeter.configuration.ProxyConfiguration
-
public class ProxyConfiguration extends Object
Is used for configuration of all proxy related configuration.
Configuration in pom.xml:
<proxyConfig> <host></host> <port></port> <username></username> <password></password> <hostExclusions></hostExclusions> </proxyConfig>
- Author:
- Arne Franken
-
-
Constructor Summary
Constructors Constructor Description ProxyConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getHost()
String
getHostExclusions()
String
getPassword()
String
getPort()
String
getUsername()
void
setHost(String host)
HTTP proxy host namevoid
setHostExclusions(String hostExclusions)
Regex of hosts that will not be proxiedvoid
setPassword(String password)
HTTP proxy user passwordvoid
setPort(Integer port)
HTTP proxy port Default: 80void
setUsername(String username)
HTTP proxy usernameString
toString()
Proxy details formatted for command line output.
-
-
-
Method Detail
-
getHost
public String getHost()
- Returns:
- HTTP proxy host name
-
setHost
public void setHost(String host)
HTTP proxy host name- Parameters:
host
- String
-
getPort
public String getPort()
- Returns:
- HTTP proxy port as long as a host is set
-
setPort
public void setPort(Integer port)
HTTP proxy port Default: 80- Parameters:
port
- Integer
-
getUsername
public String getUsername()
- Returns:
- HTTP proxy username as long as a host is set
-
setUsername
public void setUsername(String username)
HTTP proxy username- Parameters:
username
- String
-
getPassword
public String getPassword()
- Returns:
- HTTP proxy user password as long as a host is set
-
setPassword
public void setPassword(String password)
HTTP proxy user password- Parameters:
password
- String
-
getHostExclusions
public String getHostExclusions()
- Returns:
- Regex of hosts that will not be proxied as long as a host is set
-
setHostExclusions
public void setHostExclusions(String hostExclusions)
Regex of hosts that will not be proxied- Parameters:
hostExclusions
- String
-
-