public class UrlUtils extends Object
Constructor and Description |
---|
UrlUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isBaseUrlEqual(String url1,
String url2)
This method checks whether two provided urls are equal but not taking into
account 'fragment' part of the url (the component of the URI following a '#')
|
static boolean |
isExternal(String url,
String appUrl)
Check if given url is external to the domain of application
|
static String |
toAbsoluteURL(String baseURL,
String url)
Changes the relative URL to the absolute.
|
public static boolean isExternal(String url, String appUrl)
url
- url to be checkedappUrl
- application urlpublic static boolean isBaseUrlEqual(String url1, String url2)
url1
- First url.url2
- Second url.