// Path: src/main/java/com/lazerycode/jmeter/utility/UtilityFunctions.java
// public static Boolean isNotSet(Map<?, ?> value) {
//     return null == value || value.isEmpty();
// }
// 
// Path: src/main/java/com/lazerycode/jmeter/utility/UtilityFunctions.java
// public static Boolean isSet(String value) {
//     return !isNotSet(value);
// }


import static com.lazerycode.jmeter.utility.UtilityFunctions.isNotSet;
import static com.lazerycode.jmeter.utility.UtilityFunctions.isSet;
package com.lazerycode.jmeter.configuration;


/**
 * Is used for configuration of all proxy related configuration.
 * <br>
 * Configuration in pom.xml:
 * <br>
 * <pre>
 * {@code
 * <proxyConfig>
 *     <host></host>
 *     <port></port>
 *     <username></username>
 *     <password></password>
 *     <hostExclusions></hostExclusions>
 * </proxyConfig>
 * }
 * </pre>
 *
 * @author Arne Franken
 */
public class ProxyConfiguration {

	private String hostExclusions = null;
	private String host = null;
	private Integer port = 80;
	private String username = null;
	private String password = null;

	/**
	 * @return HTTP proxy host name
	 */
	public String getHost() {
		return host;
	}

	/**
	 * HTTP proxy host name
	 *
	 * @param host String
	 */
	public void setHost(String host) {
		this.host = host;
	}

	/**
	 * @return HTTP proxy port as long as a host is set
	 */
	public String getPort() {
		if (isNotSet(host)) return null;
		return port.toString();
	}

	/**
	 * HTTP proxy port
	 * Default: 80
	 *
	 * @param port Integer
	 */
	public void setPort(Integer port) {
		this.port = port;
	}

	/**
	 * @return HTTP proxy username as long as a host is set
	 */
	public String getUsername() {
// Path: src/main/java/com/lazerycode/jmeter/utility/UtilityFunctions.java
// public static Boolean isNotSet(Map<?, ?> value) {
//     return null == value || value.isEmpty();
// }
// 
// Path: src/main/java/com/lazerycode/jmeter/utility/UtilityFunctions.java
// public static Boolean isSet(String value) {
//     return !isNotSet(value);
// }


// Path: src/main/java/com/lazerycode/jmeter/configuration/ProxyConfiguration.java
import static com.lazerycode.jmeter.utility.UtilityFunctions.isNotSet;
import static com.lazerycode.jmeter.utility.UtilityFunctions.isSet;

package com.lazerycode.jmeter.configuration;


/**
 * Is used for configuration of all proxy related configuration.
 * <br>
 * Configuration in pom.xml:
 * <br>
 * <pre>
 * {@code
 * <proxyConfig>
 *     <host></host>
 *     <port></port>
 *     <username></username>
 *     <password></password>
 *     <hostExclusions></hostExclusions>
 * </proxyConfig>
 * }
 * </pre>
 *
 * @author Arne Franken
 */
public class ProxyConfiguration {

	private String hostExclusions = null;
	private String host = null;
	private Integer port = 80;
	private String username = null;
	private String password = null;

	/**
	 * @return HTTP proxy host name
	 */
	public String getHost() {
		return host;
	}

	/**
	 * HTTP proxy host name
	 *
	 * @param host String
	 */
	public void setHost(String host) {
		this.host = host;
	}

	/**
	 * @return HTTP proxy port as long as a host is set
	 */
	public String getPort() {
		if (isNotSet(host)) return null;
		return port.toString();
	}

	/**
	 * HTTP proxy port
	 * Default: 80
	 *
	 * @param port Integer
	 */
	public void setPort(Integer port) {
		this.port = port;
	}

	/**
	 * @return HTTP proxy username as long as a host is set
	 */
	public String getUsername() {
		if (isNotSet(host)) return null;