public JettyBootstrap startServer ( Boolean join ) throws JettyBootstrapException { LOG . info ( "Starting Server..." ) ; IJettyConfiguration iJettyConfiguration = getInitializedConfiguration ( ) ; initServer ( iJettyConfiguration ) ; try { server . start ( ) ; } catch ( Exception e ) { throw new JettyBootstrapException ( e ) ; } // display server addresses if ( iJettyConfiguration . getJettyConnectors ( ) . contains ( JettyConnector . HTTP ) ) { LOG . info ( "http://{}:{}" , iJettyConfiguration . getHost ( ) , iJettyConfiguration . getPort ( ) ) ; } if ( iJettyConfiguration . getJettyConnectors ( ) . contains ( JettyConnector . HTTPS ) ) { LOG . info ( "https://{}:{}" , iJettyConfiguration . getHost ( ) , iJettyConfiguration . getSslPort ( ) ) ; } if ( ( join != null && join ) || ( join == null && iJettyConfiguration . isAutoJoinOnStart ( ) ) ) { joinServer ( ) ; } return this ; }
Starts the Jetty Server and join the calling thread .