version 1.28, 2004/06/17 21:15:09
|
version 1.29, 2004/06/28 14:38:01
|
|
|
{ | { |
static String PROPERTY_NAME__SSLCERT_FILEPATH = "sslCertificateFilePath"; | static String PROPERTY_NAME__SSLCERT_FILEPATH = "sslCertificateFilePath"; |
static String PROPERTY_NAME__SSLKEY_FILEPATH = "sslKeyFilePath"; | static String PROPERTY_NAME__SSLKEY_FILEPATH = "sslKeyFilePath"; |
static String PROPERTY_NAME__ENABLE_HTTPS_CONNECTION = "enableHttpsConnection"; |
|
static String PROPERTY_NAME__ENABLE_HTTP_CONNECTION = "enableHttpConnection"; |
|
| |
// | // |
// Get the sslCertificateFilePath property from the Config Manager. | // Get the sslCertificateFilePath property from the Config Manager. |
|
|
randFile = ConfigManager::getHomedPath(PEGASUS_SSLSERVER_RANDOMFILE); | randFile = ConfigManager::getHomedPath(PEGASUS_SSLSERVER_RANDOMFILE); |
#endif | #endif |
| |
// |
|
// Get the enableHttpsConnection and enableHttpConnection properties |
|
// |
|
String enableHttps = configManager->getCurrentValue( |
|
PROPERTY_NAME__ENABLE_HTTPS_CONNECTION); |
|
String enableHttp = configManager->getCurrentValue( |
|
PROPERTY_NAME__ENABLE_HTTP_CONNECTION); |
|
|
|
#ifdef PEGASUS_USE_23HTTPMONITOR_CLIENT | #ifdef PEGASUS_USE_23HTTPMONITOR_CLIENT |
Monitor monitor; | Monitor monitor; |
HTTPConnector httpConnector( &monitor); | HTTPConnector httpConnector( &monitor); |
|
|
if (colon != PEG_NOT_FOUND) | if (colon != PEG_NOT_FOUND) |
{ | { |
String httpStr = dest.subString(0, colon); | String httpStr = dest.subString(0, colon); |
if (String::equalNoCase(httpStr, "https") && |
if (String::equalNoCase(httpStr, "https")) |
String::equalNoCase(enableHttps, "true")) |
|
{ | { |
useHttps = true; | useHttps = true; |
} | } |
else if (String::equalNoCase(httpStr, "http") && |
else if (String::equalNoCase(httpStr, "http")) |
String::equalNoCase(enableHttp, "true")) |
|
{ | { |
useHttps = false; | useHttps = false; |
} | } |