SocketListener listener = null;
if (contextConfiguration.retrieveProperty(new ContextKey("webServer.protocol")).equals("http")) {
listener = new SocketListener();
log.warn("The server is configured to listen for plain HTTP connections.");
} else {
listener = new CustomJsseListener(keystorePassword);
MsieSslHandler sslHandler = new MsieSslHandler();
sslHandler.setUserAgentSubString("MSIE 5");
listener.setHttpHandler(sslHandler);
}
listener.setPort(actualPort);