sslConnector.setNeedClientAuth(false);
sslConnector.setMaxIdleTime(30000);
sslConnector.setPort(localPort);
server.addConnector(sslConnector);
TunnelServlet tunnelServlet = new TunnelServlet(project, sslEndpoint, listenerCallBack);
tunnelServlet.setIncludedContentTypes(includedContentTypes);
context.addServlet(new ServletHolder(tunnelServlet), ROOT);
} else {
if (sslEndpoint.startsWith(HTTP)) {
connector.setPort(localPort);
server.addConnector(connector);
TunnelServlet tunnelServlet = new TunnelServlet(project, sslEndpoint, listenerCallBack);
tunnelServlet.setIncludedContentTypes(includedContentTypes);
context.addServlet(new ServletHolder(tunnelServlet), ROOT);
} else {
UISupport.showErrorMessage("Unsupported/unknown protocol tunnel will not start");
return;
}