private URI buildLivenessUri(int livenessCheckPort){
  final String scheme=(tlsEnabled ? "https" : "http") + "://";
  final String host=container.getContainerIpAddress();
  final String portSuffix;
  if ((tlsEnabled && 443 == livenessCheckPort) || (!tlsEnabled && 80 == livenessCheckPort)) {
    portSuffix="";
  }
 else {
    portSuffix=":" + String.valueOf(livenessCheckPort);
  }
  return URI.create(scheme + host + portSuffix+ path);
}

private URI buildLivenessUri ( int livenessCheckPort ) { final String scheme = ( tlsEnabled ? "https" : "http" ) + "://" ; final String host = container . getContainerIpAddress ( ) ; final String portSuffix ; if ( ( tlsEnabled && 443 == livenessCheckPort ) || ( ! tlsEnabled && 80 == livenessCheckPort ) ) { portSuffix = "" ; } else { portSuffix = ":" + String . valueOf ( livenessCheckPort ) ; } return URI . create ( scheme + host + portSuffix + path ) ; }
build the uri on which to check if the container is ready .
