setConnectorOptions(connector, props);
server.addConnector(connector);
} else if ("https".equals(props.getProperty("type").value)) {
SslSocketConnector connector = new SslSocketConnector();
setConnectorOptions(connector, props);
if (props.getProperty("keystore") != null) {
connector.setKeystore(props.getProperty("keystore").value);
}
if (props.getProperty("password") != null) {
connector.setPassword(props.getProperty("password").value);
}
if (props.getProperty("key-password") != null) {
connector.setKeyPassword(props.getProperty("key-password").value);
}
if (props.getProperty("client-auth") != null) {
if ("need".equals(props.getProperty("client-auth").value)) {
connector.setNeedClientAuth(true);
} else if ("want".equals(props.getProperty("client-auth").value)) {
connector.setWantClientAuth(true);
}
}
server.addConnector(connector);
} else if ("nio-http".equals(props.getProperty("type").value)) {
AbstractConnector connector = new SelectChannelConnector();
setConnectorOptions(connector, props);
server.addConnector(connector);
} else if ("nio-https".equals(props.getProperty("type").value)) {
SslSelectChannelConnector connector = new SslSelectChannelConnector();
setConnectorOptions(connector, props);
if (props.getProperty("keystore") != null) {
connector.setKeystore(props.getProperty("keystore").value);
}
if (props.getProperty("password") != null) {
connector.setPassword(props.getProperty("password").value);
}
if (props.getProperty("key-password") != null) {
connector.setKeyPassword(props.getProperty("key-password").value);
}
if (props.getProperty("need-client-auth") != null) {
boolean needClientAuth = "true".equalsIgnoreCase(props.getProperty("need-client-auth").value);
connector.setNeedClientAuth(needClientAuth);
}
server.addConnector(connector);
} else if ("ajp13".equals(props.getProperty("type").value)) {