Class URLUtils

java.lang.Object
org.jenkins.ci.plugins.jobimport.utils.URLUtils

public final class URLUtils extends Object
Since:
1.0
Author:
Jesse Farinacci
  • Method Details

    • notNull

      public static void notNull(Object object)
    • getUrl

      public static org.apache.http.HttpResponse getUrl(String url, String username, String password) throws IOException
      Parameters:
      url - The url to fetch
      username - The username to use while fetching the url
      password - The password to use while fetching the url
      Returns:
      The HttpResponse received.
      Throws:
      IOException - If there was an issue in the communication with the server
    • fetchUrl

      public static InputStream fetchUrl(String url, String username, String password) throws IOException
      Throws:
      IOException
    • safeURL

      public static String safeURL(String base, String sufix)