public void stop() throws Exception {
        // verify server isn't null
        if (server == null) {
            throw new NullPointerException("Internal server instance was null, server already stopped perhaps?");
        }
        
        logger.info("HttpServer [{}] on [{}] stopping...", configuration.safeGetName(), configuration.getPortString());

        server.stop();

        logger.info("HttpServer [{}] on [{}] stopped", configuration.safeGetName(), configuration.getPortString());
    }
public void stop ( ) throws Exception { if ( server == null ) { throw new NullPointerException ( "Internal server instance was null, server already stopped perhaps?" ) ; } logger . info ( "HttpServer [{}] on [{}] stopping..." , configuration . safeGetName ( ) , configuration . getPortString ( ) ) ; server . stop ( ) ; logger . info ( "HttpServer [{}] on [{}] stopped" , configuration . safeGetName ( ) , configuration . getPortString ( ) ) ; }
Stops the HTTP server.
@throws Exception Thrown if there is an error during stop