}
private boolean requiredPropertiesDefined(String proxyName, String hostnameProperty, String portProperty,
String typeProperty) {
final Properties properties = getProperties();
final Logger logger = getLogger();
if (!properties.containsKey(hostnameProperty)) {
logger.error(
"Missing system property defining hostname for custom proxy: " +
proxyName + ". Property: " + hostnameProperty + " must be defined to correctly define the proxy");
return false;
}
if (!properties.containsKey(portProperty)) {
logger.error(
"Missing system property defining port for custom proxy: " + proxyName + ". Property: " +
portProperty + " must be defined to correctly define the proxy");
return false;
}
if (!properties.containsKey(typeProperty)) {
logger.error(
"Missing system property defining type for custom proxy: " + proxyName + ". Property: " +
typeProperty + " must be defined to correctly define the proxy");
return false;
}