Answers for "new URL(new URL("${"),"/builds").openConnection() as HttpURLConnection"

0

new URL(new URL("${"),"/builds").openConnection() as HttpURLConnection

public boolean loadURL(String propertiesUrl){
  try {
    URL url=new URL(propertiesUrl);
    HttpURLConnection con=(HttpURLConnection)url.openConnection();
    BufferedReader in=new BufferedReader(new InputStreamReader(con.getInputStream()));
    properties.load(in);
    return true;
  }
 catch (  Exception e) {
    Utils.log("Properties file not found",System.err);
    return false;
  }
}
Posted by: Guest on November-02-2020

Code answers related to "new URL(new URL("${"),"/builds").openConnection() as HttpURLConnection"

Browse Popular Code Answers by Language