public static String getBoundAddressForId ( Configuration configuration , String serverId ) { String hostPort = configuration . getString ( ATLAS_SERVER_ADDRESS_PREFIX + serverId ) ; boolean isSecure = configuration . getBoolean ( SecurityProperties . TLS_ENABLED ) ; String protocol = ( isSecure ) ? "https://" : "http://" ; return protocol + hostPort ; }
Get the web server address that a server instance with the passed ID is bound to .