Package com.xceptance.xlt.api.util

# 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 Summary

  Constructors
  Constructor
  Description
  `URLUtils()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static String`
  `makeLinkAbsolute(String baseUrl, String url)`
  Makes an URL absolute based on a base URL.
  `static String`
  `makeLinkAbsolute(URI baseURI, String url)`
  Makes a single link absolute by matching it to a base URI.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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