public class UrlUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
URL_PATTERN |
Constructor and Description |
---|
UrlUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
addContextPath(String url,
ContextPathHolder contextPathHolder)
Adds the context path to the given url, if required.
|
static boolean |
isAbsoluteUrl(String url)
Checks if the given URL is absolute.
|
static boolean |
isBlogPostCreationUrl(String url) |
static boolean |
isBlogPostEditUrl(String url) |
static boolean |
isEditingUrl(String url) |
static boolean |
isEditorLoaderUrl(String url) |
static boolean |
isPageCreationUrl(String url) |
static boolean |
isPageEditUrl(String url) |
static boolean |
isResumeDraftUrl(String url) |
static boolean |
isSameOrigin(URL url,
URL origin) |
static boolean |
isTemplateCreationUrl(String url) |
static boolean |
isTemplateEditUrl(String url) |
static String |
removeUrlsFromString(String text)
Remove all Urls from a string
|
static boolean |
verifyUrl(String url)
Checks if the supplied URL is valid.
|
public static final String URL_PATTERN
public static boolean isSameOrigin(URL url, URL origin)
url
- the url to checkorigin
- the origin to check against.public static String addContextPath(String url, ContextPathHolder contextPathHolder)
url
- the url to add the context path to.contextPathHolder
- the holder for the context path to add.public static boolean verifyUrl(String url)
url
- the URL to checkpublic static boolean isAbsoluteUrl(String url)
url
- the URL to check.public static String removeUrlsFromString(String text)
text
- the text to be cleanpublic static boolean isResumeDraftUrl(String url)
public static boolean isPageCreationUrl(String url)
public static boolean isPageEditUrl(String url)
public static boolean isBlogPostCreationUrl(String url)
public static boolean isBlogPostEditUrl(String url)
public static boolean isTemplateCreationUrl(String url)
public static boolean isTemplateEditUrl(String url)
public static boolean isEditorLoaderUrl(String url)
public static boolean isEditingUrl(String url)
Copyright © 2003–2018 Atlassian. All rights reserved.