public JettyBootstrap stopServer ( ) throws JettyBootstrapException { LOG . info ( "Stopping Server..." ) ; try { if ( isServerStarted ( ) ) { handlers . stop ( ) ; server . stop ( ) ; LOG . info ( "Server stopped." ) ; } else { LOG . warn ( "Can't stop server. Already stopped" ) ; } } catch ( Exception e ) { throw new JettyBootstrapException ( e ) ; } return this ; }
Stops the Jetty server .