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 StringgetHost()StringgetHostExclusions()StringgetPassword()StringgetPort()StringgetUsername()voidsetHost(String host)HTTP proxy host namevoidsetHostExclusions(String hostExclusions)Regex of hosts that will not be proxiedvoidsetPassword(String password)HTTP proxy user passwordvoidsetPort(Integer port)HTTP proxy port Default: 80voidsetUsername(String username)HTTP proxy usernameStringtoString()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
-
-