Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-dev] Migrating Jetty6 to Jetty 9 - SslSocketConnector related

I want to migrate this code (written using Jetty6 classes) to Jetty 9
Please help to find the solution
SslSocketConnector connector = new SslSocketConnector();
connector.setPort(Integer.parseInt(irProperties
.getProperty(Constants.JETTY_PORT_NUMBER)));
int maxIdleTime = Integer.parseInt(irProperties
.getProperty(Constants.JETTY_MAXIMUM_IDLE_TIME));
connector.setMaxIdleTime(maxIdleTime);

connector.setKeyPassword(ipsProperties
.getProperty(Constants.JETTY_SSL_KEY_PASSWORD));
connector.setKeystore(ipsProperties
.getProperty(Constants.JETTY_SSL_KEYSTORE_PATH));

Server server = new Server();
server.setConnectors(new Connector[] { connector });

Back to the top