Class URLUtils

java.lang.Object
com.xceptance.xlt.api.util.URLUtils

public class URLUtils extends Object
This class provides some convenient methods for link processing.
  • Constructor Details

    • URLUtils

      public URLUtils()
  • Method Details

    • makeLinkAbsolute

      public static String makeLinkAbsolute(String baseUrl, String url)
      Makes an URL absolute based on a base URL.
      Parameters:
      baseUrl - the base URL
      url - the URL to modify
      Returns:
      the result URL
    • makeLinkAbsolute

      public static String makeLinkAbsolute(URI baseURI, String url)
      Makes a single link absolute by matching it to a base URI.
      Parameters:
      baseURI - the base URI to use
      url - the link to verify and modify
      Returns:
      the modified URL