@ Override protected void startUp ( ) { long traceId = LoggerHelpers . traceEnterWithContext ( log , this . objectId , "startUp" ) ; try { log . info ( "Starting REST server listening on port: {}" , this . restServerConfig . getPort ( ) ) ; if ( restServerConfig . isTlsEnabled ( ) ) { SSLContextConfigurator contextConfigurator = new SSLContextConfigurator ( ) ; contextConfigurator . setKeyStoreFile ( restServerConfig . getKeyFilePath ( ) ) ; contextConfigurator . setKeyStorePass ( JKSHelper . loadPasswordFrom ( restServerConfig . getKeyFilePasswordPath ( ) ) ) ; httpServer = GrizzlyHttpServerFactory . createHttpServer ( baseUri , resourceConfig , true , new SSLEngineConfigurator ( contextConfigurator , false , false , false ) ) ; } else { httpServer = GrizzlyHttpServerFactory . createHttpServer ( baseUri , resourceConfig , true ) ; } } finally { LoggerHelpers . traceLeave ( log , this . objectId , "startUp" , traceId ) ; } }
Start REST service .