Package com.xceptance.xlt.api.util
Class URLUtils
java.lang.Object
com.xceptance.xlt.api.util.URLUtils
This class provides some convenient methods for link processing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
URLUtils
public URLUtils()
-
-
Method Details
-
makeLinkAbsolute
Makes an URL absolute based on a base URL.- Parameters:
baseUrl
- the base URLurl
- the URL to modify- Returns:
- the result URL
-
makeLinkAbsolute
Makes a single link absolute by matching it to a base URI.- Parameters:
baseURI
- the base URI to useurl
- the link to verify and modify- Returns:
- the modified URL
-