public String resolveOrientDBRestApiUrl ( ) { OrientDbWebApplication app = OrientDbWebApplication . get ( ) ; OServer server = app . getServer ( ) ; if ( server != null ) { OServerNetworkListener http = server . getListenerByProtocol ( ONetworkProtocolHttpAbstract . class ) ; if ( http != null ) { return "http://" + http . getListeningAddress ( true ) ; } } return null ; }
Resolve OrientDB REST API URL to be used for OrientDb REST bridge