private String getProtocol(boolean useHttps) {
    return useHttps ? "https" : "http";
  }
Resource manager specific HTTP property request.
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ResourceManagerHttpPropertyRequest.java